Home › Forums › TWAIN Classic › Scan app for twain enabled scanners › Reply To: Scan app for twain enabled scanners
Sanjeev
Am trying to build the same app using VB.NET. I got it to work fine except for one last bug I will explain below. So, I’ll try to help you with your project. Hopefully, as I state my bug in this forum, someone will care to present an answer.
For starters, check out this website. It will very helpful for your project: http://www.codeproject.com/KB/dotnet/twaindotnet.aspx
You need to build an ActiveX control and deal with all the security settings required for it to work. Don’t worry about any TWAIN required installations on the client. I think most modern operating system do carry all the TWAIN libraries required.
So far, I was able to build the ActiveX Control and send it to the client. When the client, using JavaScript lauches my TWAIN ActiveX, the Source Manager loads successfully no problem. The user is also able to select a TWAIN source. However, after selecting the TWAIN source, while the UI displays with no problem, I can only pre-Scan. All the other options are disabled. The only exception is when I scan and there is no paper in the scanner, where the UI responds with an error message “no paper”.
If I move the code to an executable instead of a DLL, and install it into the client, the program work perfectly. So somehow, the Window Handle gets lost or something. I don’t know.
Hope that helps you.