Home › Forums › TWAIN Classic › TWAIN Beginner
- This topic has 3 replies, 1 voice, and was last updated 2 years, 3 months ago by .
- AuthorPosts
- Pokai
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 projectIs 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.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.
AmrelsaftyHello:
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
AmrelsaftyThanks
- AuthorPosts