This is my Code
Scanner.cs
Form1.cs
How to display image after scanning on picture box?
Thanx in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mia EoghanPosted Feb 4, 2016, 11:25 AM
https://msdn.microsoft.com/en-us/library/windows/desktop/ms630783%28v=vs.85%29.aspx
The CommonDialog.ShowSelectDevice method is designed to show WIA based devices only. Most modern scanners have Twain and WIA drivers. However, if a scanner has Twain driver only, the ShowSelectDevice will not list it.
About getting the scanned image, the following article contains good information about this:
http://stackoverflow.com/questions/2413910/why-cant-wia-see-my-scanner
Note that you might need to use a programming SDK (similar to leadtools) to handle Twain based devices. You can find more details about the differences between Twain and WIA here:
http://support.leadtools.com/SupportPortal/CS/forums/7717/showpost.aspx