Enumerate scanning devices

Jan 13, 2010 at 2:40 PM

I noticed that you can use select source and set source in opentwain.

 

What I wish to do is either get the current scanner on the system so that I can save the name in a file and use set source to automatically select it next time.

Preferably I would like to be able to replace the select scanner dialogue with my own. I'm not sure how you would go about enumerating WIA and twain devices... is it possible to do this in c# through open twain or will I have to look somewhere else?

I'm confused.com

Coordinator
Mar 11, 2010 at 1:44 PM

you should be able to do this, there is code in opentwain for GetDault and I use GetFirst / GetNext to enumerate the list.  There is even code in opentwain for producing a dialog that is similar to the standard dialog.  Let me know if you have trouble finding the code.

 

Best regards,