0

i have a requirement i want to work with but i dont know from where to start.

Requirement I want to use the client pc scanner in web browser to scan the image and upload it to the server. I have read few web twain addons which uses the native twain to access the scanner and upload the images but none of them are open source.

We have 10 computers which are on intranet and we can allow the web application to use the windows resources through addons

So is there any possible way to develop a firefox addon which uses the com or windows resources to scan the image and send it to the server using the client scanner. Wrb development platform we are using is asp.net mvc3/4. if its possible then can anyone.please guide me how to develop the firefox addon with ease

js-ctypes code / mozilla addon

 var libs = ctypes.open('C:\\KPTwainScan.DLL');
      var constructor = libs.declare("Twain", ctypes.winapi_abi,
          ctypes.int32_t,
          ctypes.int32_t,
          ctypes.jschar.ptr,
          ctypes.jschar.ptr,
          ctypes.int32_t);
      var obj = constructor();

      libs.close();

C# library Code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace @new
{
    public class Class1
    {
        public void ShowMessageBox()
        {
            MessageBox.Show("Alerted");
        }
    }
}

no able to invoke the ShowMessageBox Function . Please guide

Shakoor Alam
  • 187
  • 1
  • 5
  • 20

0 Answers0