Twain or WIA? A bit lost between this two interface

Walter Fabio Simoni picture Walter Fabio Simoni · May 20, 2013 · Viewed 8.6k times · Source

I need to write a c# assembly (DLL) in order to scan documents.
I don't know if I need to use TWAIN or WIA.

Anyone could help me please ?

  • What are the différences?
  • What are your advices ?
  • Is there a c# Library ?

Answer

Rachel picture Rachel · May 21, 2013

Generally, if your application is to interact with scanners, TWAIN is recommended. While for cameras, WIA offers better support.

So for document scanning solution, I would recommend TWAIN.

TWAIN.H file is a C/C++ header file. If you want to code it to .NET yourself, you can refer to this post to get some resources: Using TWAIN in .NET - Looking for resources

Or you can use a commercial .NET TWAIN component.