TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Reply To: Scan app for twain enabled scanners

Forums › TWAIN Classic › Scan app for twain enabled scanners › Reply To: Scan app for twain enabled scanners

August 18, 2009 at 5:16 pm #25013
mcohen
Participant
  • Topics - 2
  • Replies - 13
  • Total Posts - 15

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.

Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • Girls of Desire: All babes in one place, crazy, art
  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in