Recently, I wrote a system that requires scanning documents and uploading them to the server. The customer asked me not to use other software and to integrate them into the system. I found some materials for your reference.
1. Use the imgscan. ocx control
You can download this kodak component from the Internet. This method is implemented through com. It is successfully tried in VB6, but there is a problem, it means that the ScannerAvailable attribute cannot be used to check whether the scanner is ready. in C #, I still don't know how to use it. On the internet, the scanner can be used directly after being referenced. However, after I reference it, I find that an error is reported, we look forward to some solutions.
Here I provide download of this component and VB6 source code,
Components:
Http://files.cnblogs.com/szyicol/Kodak.rar
Vb6 code:
Http://files.cnblogs.com/szyicol/imgscan-vb6.rar
Ii. wia is used for scanning.
Windows Image Acquisition (WIA) is the latest imaging technology. It is introduced in Microsoft Windows Millennium Edition and is included in a later version of Microsoft Windows operating system (for example, Windows XP. Note that Windows does not support WIA ). WIA provides extensive support to enable imaging devices, such as scanners and digital cameras, to connect to image applications (such as MicrosoftPicture2000 and Adobe Photoshop.
Before WIA, the industry standard for imaging equipment was TWAIN.
With WIA, the manufacturer only needs to write the WIA microdriver to allow the device to use it. This is similar to the minidriver provided by the print manufacturer, while other WIA components are implemented by the operating system.
With WIA, the independent hardware vendor (IHV) can centrally write code to improve device functionality.
The relationship between WIA and TWAIN is that WIA is the image acquisition architecture of Microsoft operating system and belongs to the Windows operating system driver class, while TWAIN is an open protocol, it is used to solve the portability call of application software to different image peripherals. It should be said that WIA is something on the driver layer that provides SDK interfaces for applications, while the TWAIN Protocol provides a public interface between drivers and applications. TWAIN has a higher level than WIA.
WIA is short for Windows Image Acquisition. The current available version is WIA 1.0. It is a digital Image Acquisition service provided by Windows Millennium Edition (Windows Me) or a later version of Windows, it can also be used to manage digital image devices.
The WIA interface is both an application interface (wia api) and a device driver interface (wia ddi). The following describes the wia api content.
At present, although I installed vs2008, I found that wia is still version 1.0. You can download this type of library from the MS website.
Http://www.microsoft.com/downloads/details.aspx? Displaylang = en & FamilyID = a332a77a-01b8-4de6-91c2-b7ea32537e29
Here I provide the code to call wia
Http://files.cnblogs.com/szyicol/wiaScan.rar
For more information about wia, refer to the following websites:
Http://newinfo.sysu.edu.cn/Snowwaft/index.php? Paged = 2
Other twain and wia code may be a lower-layer encapsulation class.
Http://files.cnblogs.com/szyicol/wiascriptingdotnet.zip
Http://files.cnblogs.com/szyicol/twaingui_src.zip