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 ?
TWAIN has three transfer modes (native, memory, file) while WIA has only two (memory, file). TWAIN enables device vendors to create a customized user interface for each driver. WIA uses a simplified user interface for all devices, based on a scripting object model.
TWAIN is meant to be an industry standard (covering all image acquisition devices, for all Operating Systems) while WIA is a vendor (Microsoft) API provided to image acquisition device manufacturers for Windows Operating Systems only.
In the administrator mode, select [Network] - [TCP/IP Setting] - [TCP/IP Setting], and set [SLP] to [Enable] (Default: [Enable]). In the administrator mode, select [Network] - [TCP Socket Setting], then configure the following settings. Select this check box to use the TWAIN scan function.
Windows Image Acquisition (WIA; sometimes also called Windows Imaging Architecture) is a proprietary Microsoft driver model and application programming interface (API) for Microsoft Windows Me and later Windows operating systems that enables graphics software to communicate with imaging hardware such as scanners, ...
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With