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 Beginner

Forums › TWAIN Classic › TWAIN Beginner

  • This topic has 3 replies, 1 voice, and was last updated 11 months, 3 weeks ago by Amrelsafty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 14, 2020 at 10:48 pm #52265 Reply
    Pokai
    • Topics - 93
    • Replies - 186
    • Total Posts - 279

    Hello everyone,

    I try to learn how to Scan picture with HP DeskJet 2130 by using Twain via C#.
    I downloaded “TWAIN CS 02.03.02.00” and try to use the “twaincstst.exe” to learn how to Scan step by step.

    I follow the action below:
    1.DG_CONTROL\DAT_PARENT\MSG_OPENDSM
    2.DG_CONTROL\DAT_IDENTITY\MSG_GETFIRST (Now I can see my HP printer)
    3.DG_CONTROL\DAT_IDENTITY\MSG_OPENDS
    And then I call DG_IMAGE\DAT_IMAGEFILEXFER\MSG_GET,It just pendding without any error message or return code…..and I also cant close the project

    Is any command I missed before DG_IMAGE\DAT_IMAGEFILEXFER\MSG_GET ? I read the TWAIN-2.4-Specification.pdf but I have no idea with my problem.
    Please help me thanks.

    January 21, 2020 at 4:14 pm #52288 Reply
    Erin Dempsey
    Moderator
    • Topics - 0
    • Replies - 14
    • Total Posts - 14

    Hello:

    Here is the correct sequence of commands: DG_CONTROL / DAT_USERINTERFACE / MSG_ENABLEDS with TW_USERINTERFACE.ShowUI = 0 to start scanning (going to state 5). The receipt of DG_CONTROL / DAT_NULL / MSG_XFERREADY indicates that the scanner is ready to transfer images, moving to state 6. Only then will a call to DG_IMAGE / DAT_IMAGEFILEXFER / MSG_GET be able to transfer an image.

    February 6, 2020 at 7:41 am #52308 Reply
    Amrelsafty
    • Topics - 93
    • Replies - 186
    • Total Posts - 279

    Hello:

    Here is the correct sequence of commands: DG_CONTROL / DAT_USERINTERFACE / MSG_ENABLEDS with TW_USERINTERFACE.ShowUI = 0 to start scanning (going to state 5). The receipt of DG_CONTROL / DAT_NULL / MSG_XFERREADY indicates that the scanner is ready to transfer images, moving to state 6. Only then will a call to DG_IMAGE / DAT_IMAGEFILEXFER / MSG_GET be able to transfer an image

    February 6, 2020 at 8:02 am #52310 Reply
    Amrelsafty
    • Topics - 93
    • Replies - 186
    • Total Posts - 279

    Thanks

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: TWAIN Beginner
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.