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

Twain Web Control Issue

Forums › TWAIN Classic › Twain Web Control Issue

  • This topic has 0 replies, 1 voice, and was last updated 11 years, 5 months ago by mcohen.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • August 17, 2009 at 6:18 pm #22526 Reply
    mcohen
    Participant
    • Topics - 2
    • Replies - 13
    • Total Posts - 15

    Hi all.

    I am building a Twain Control that is deployed over the Internet to client applications. This Control is built as a “Class Library” which generates an “MDI Form” upon activation. Clients use JavaScript to call my public method “Scan” exposed by the “Class Library”. This method creates an instance of the MDI form and loads it into memory. When the MDI form loads, it initializes a Twain object using its own windows handle or pointer to the Triplet Operation TW_DG.DG_CONTROL, TW_DAT.DAT_PARENT, TW_MSG.MSG_OPENDSM which in turn returns a SUCCESS code. Twain then loads the “Source Manager” successfully where I am able to select a “Twain Source”. After selecting a source I get the expected “Twain User Interface” which is able to “PreScan” without a problem. However, all other options are unresponsive, including the “Scan Button” (Actually, if there is no paper on the scanner, the “Scan Button” does respond with a “No Paper” error message, but if there is paper it becomes unresponsive). You should note several things I’ve attempted or checked:

    1.- When running the Triplet Operation TW_DG.DG_CONTROL, TW_DAT.DAT_USERINTERFACE, TW_MSG.MSG_ENABLEDS, the response code is TW_RC.TWRC_SUCCESS, so I assume there is no problem on that end.
    2.- I have a function “PreFilterMessage” that is constantly querying the Twain object for any Events that maybe generated. This function doesn’t seem to be getting any messages at all from the Twain object.
    3.- The same code works without glitch if I deploy the application to the client as an executable where the MDI form is the startup object.

    The problem seems to be related to event handling of some sort. Somehow the windows handle or pointer gets lost or is the wrong one, but I can’t figure out why or how to fix it…

    Any help would be greatly appreciated.

    • Author
      Posts
    Viewing 1 post (of 1 total)
    Reply To: Twain Web Control Issue
    Your information:




    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

    • 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.
    • To get the list of scanners from javascript client side (browser)
    • 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

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.