Because this system involves the problem of scanning files, scanning files is a key and difficult point of the whole project, so we make several sets of solutions for reference only. The control scanner is the requirement programming language to control the hardware, the system development is based on the web framework and cannot be controlled with the underlying hardware. Several solutions are presented as follows:
First, the use of Java to write applets small program.
The use of existing applets applet in the Web to control the scanner, the disadvantage of the page is not beautiful, scan before the first call to the original driver with the scanning software, inconvenient to users. The bulk scan feature was not implemented.
The implementation is a Jtwain.dll method called in Java, Jtwain.dll encapsulates the Twain_32.dll method, Twain_32.dll is a dynamic link library with the Windows operating system itself. Java has no way to directly invoke the operating system dynamic link library, Java can call the dynamic link library must be in line with the JNI standard, Jtwain.dll is to meet this standard dynamic link library.
Second, use ActiveX controls in IE.
1. The use of Beijing XX Company's method, must choose the Company's XX scanner, the price than the general scanner expensive a large part. But their drivers provide some interface functions that we need to write as ActiveX controls to invoke these functions, which is difficult to implement.
2. The scanner control of Hui du technology,
1, the control can be used in any COM program language, such as C #, vb.net, Visual C + +, visual Basic, Delphi, Html/vbscript/javascript, Powerbuilde, etc.
2), support RLE, G3/g4, LZW, packbits TIFF compression;
3, built-in Wizard mode makes Twain's state more intelligent, at the same time easier to use;
4, built-in JPEG decoder allows you to easily compress the existing image, and can not be able to pipe TWAIN source has this ability, support automatic document supply and multiple image acquisition;
5, you can set and read the basic equipment characteristics through properties, such as: Ifautofeed, Ifautoscan, resolution, bitdepth, brightness, contrast, unit, duplex, etc.
Hui all Technology Scanner control quotes:
1), Dynamic Web TWAIN 5.0.1 ActiveX Edition Bundle (1 ActiveX Developer License & 1 ActiveX Web Server License Bundle) ¥5990
2), Dynamic Web TWAIN 5.0.1 ActiveX Edition (1 Developer License) ¥2990
3), Dynamic Web TWAIN 5.0.1 ActiveX Edition (1 Web Server License) ¥3990