LanceA$
LanceA

04/10/2007 :: 23:21

Anonyme

In evaluating the product, I have found several times when scanning an image, the TwainGetState() will be set to "2" or "3". Therefore, features like .TwainSetAutoFeed(true) will fail.

In the end, I am restarting my workstation to reset the state. Is there a way to reset the state to "1" programmatically?
Loïc$2006306
Loïc

04/11/2007 » 13:18

Registered

- If you are in state 3 you can call the TWAINCloseSourceManager method to set the State to 2: http://www.gdpicture.com/references/gdpicturepro/content/cGdPicture-TwainCloseSourceManager.html


- If you are in state 2 you can call the TWAINUnloadSourceManager method to set the State to 1: http://www.gdpicture.com/references/gdpicturepro/content/cGdPicture-TwainUnloadSourceManager.html



The second method is only available for the moment into the last beta release: http://www.gdpicture.com/ressources/betas/


Best regards,

Loïc Carrère

Edited by @lcarrere  
back to forum