Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

I need to write a .Net application that is capable of scanning documents into my app as an image.

Basically my app needs a button... pressing the button should be able to communicate with the scanner to scan the document and save it somehow and do various other things after it is scanned....

I have look at various examples on the net... some date back to 2002 and some works on some kind of scanners others don't. What is the best free app to interface with a scanner now days. The buyer is not interested in buying any of the shelf product to interface.

Thanks,
Chrispie
Posted

Basically, you need to use WIA, please see:
http://en.wikipedia.org/wiki/Windows_Image_Acquisition[^],
http://en.wikipedia.org/wiki/Image_and_Scanner_Interface_Specification[^],
http://en.wikipedia.org/wiki/TWAIN[^] (twain is the older standard, still used),
http://msdn.microsoft.com/en-us/library/ms630368(VS.85).aspx[^],
http://msdn.microsoft.com/en-us/windows/hardware/gg463507.aspx[^].

At the moment of writing, Wikipedia is on blackout, for a really serious reason. Please see:
http://en.wikipedia.org/wiki/Main_Page[^],
http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Learn_more[^].

It will resume full operation soon and then you can look up those articles. Hope Wikipedia will be fine, as well as the Internet freedom.

There is a number of CodeProject articles on the topic. As you are interested in C# or .NET solutions, please search:
http://www.codeproject.com/search.aspx?q=%28WIA+OR+TWAIN+OR+ISIS%29+%28%22C%23%22+OR+%22.NET%22%29+%28scanner+OR+scanning+OR+scan%29&doctypeid=1[^].

First of all, pay attention for this one:
WIA Scripting and .NET[^].

Good luck,
—SA
 
Share this answer
 
v2
Comments
Rajesh Anuhya 2-Feb-12 1:32am    
Good answer, have my +5
you missed a link, see my answer
--RA
Sergey Alexandrovich Kryukov 2-Feb-12 2:40am    
Thank you, Rajesh.
--SA
Sergey Alexandrovich Kryukov 13-Aug-12 13:21pm    
Thank you for the extra link as well. I don't think I missed it, but it is useful, of course -- I up-voted your answer.
--SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-Feb-12 2:40am    
Yes, looks like a good one indeed, a 5.
--SA
Rajesh Anuhya 2-Feb-12 2:40am    
Thanks SA
--RA
Helloa,

Thanks a lot for all the info...

In the end I found the following link
.NET TWAIN image scanner[^]
to be the most use full.

I don't understand pointers or how it works but with a little bit of digging you can customize the solution.

Thanks plenty :)
 
Share this answer
 
Comments
BillWoodruff 1-Feb-12 19:25pm    
See the comments on the article you link to in your Solution 2 here:

1. for getting that very old code to work in Vista/Win7:

http://www.codeproject.com/Messages/3664668/Re-WIA-for-Windows-7.aspx

2. for other discussions of that code:

http://stackoverflow.com/questions/4335323/how-does-this-code-work-hard

http://stackoverflow.com/questions/274127/wia-twain-support-c-sharp

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900