CN101075243A - Method for scanning files by webpage - Google Patents
Method for scanning files by webpage Download PDFInfo
- Publication number
- CN101075243A CN101075243A CN 200710009140 CN200710009140A CN101075243A CN 101075243 A CN101075243 A CN 101075243A CN 200710009140 CN200710009140 CN 200710009140 CN 200710009140 A CN200710009140 A CN 200710009140A CN 101075243 A CN101075243 A CN 101075243A
- Authority
- CN
- China
- Prior art keywords
- scanning
- webpage
- scanner
- document
- twain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Facsimile Scanning Arrangements (AREA)
Abstract
A method for scanning file through web page includes realizing controls of scanner selection, scanning resolution-setting, holding format-setting and high speed scan file of driving scanner on scanner in ActiveX control element through its own Twain.dll package of Window system; realizing the scanning on file by calling on said ActiveX control element on web page and automatically uploading scanner result into server for realizing erection-free of scan file at user end.
Description
Technical field
The present invention relates to a kind of scan method of document, specifically is a kind of method by the webpage scanned document.
Background technology
Though the scan method of existing document can realize the scanning to document, needs each user that client software all is installed, brought inconvenience for the large tracts of land use of system.
Summary of the invention
The purpose of this invention is to provide a kind of method, be implemented in batch high-velocity scanning document on the webpage, a large amount of paper document electronization, convenient search and preservations by the webpage scanned document.
Technical scheme of the present invention is such: by the method for webpage scanned document, realize as follows:
One, the Twain.dll encapsulation that carries by use Windows system in ActiveX control comprises selection, scanning resolution setting, preservation formatting, the driven sweep instrument high-velocity scanning document of scanner to the control of scanner;
Two, raise with the scanning of above-mentioned ActiveX control realization at webpage, and scanning result is uploaded in the server automatically, realize that the user exempts to install scanned document document.
Above-mentionedly in ActiveX, use the Twain interface to obtain image to realize as follows:
1) opens DSM (Data Source Manager: the data source manager);
2) select DS (Data Source: data source);
3) open DS;
4) parameter is set;
5) reading scan interface;
6) obtain image;
7) close the scanning interface;
8) close DS;
9) close data source.
After adopting such scheme, the present invention adopts ActiveX control encapsulation scanner control function module, and the user only needs browsing page, does not need install software, just can realize the high-velocity scanning of document on webpage.
Description of drawings
Fig. 1 is a workflow diagram of the present invention.
Embodiment
The present invention as shown in Figure 1, realizes as follows by the method for webpage scanned document:
One, the Twain.dll encapsulation that carries by use Windows system in ActiveX control comprises selection, scanning resolution setting, preservation formatting, the driven sweep instrument high-velocity scanning document of scanner to the control of scanner.
The realization as follows of in ActiveX, using the Twain interface to obtain image:
1) opens DSM (Data Source Manager: the data source manager)
TWAIN is a data source administrator, and application program at first will be used MSG_OPENDSM message, opens the data source manager.Here need to specify a window handle, activex control is handled TWAIN message (MSG_PROCESSEVENT) in the message circulation of this window.
2) select DS (Data Source: data source)
Because may have a plurality of TWAIN equipment in the system, therefore must select a data source.Select data source that dual mode is arranged usually: to select default data source (MSG_GETDEFAULT) and show check number according to the source dialog box, select data source (MSG_USERSELECT) by the user.
3) open DS
Use MSG_OPENDS message to open data source.
4) parameter is set
Message is MSG_SET, and various parameters are set, as obtain manner, amount of images etc.Some parameter is just effective by the device drives support.
5) reading scan interface
Use MSG_ENABLEDS message, the user interface (UI) that provides is provided display device.
6) obtain image
If the user selects scanning and so on, can in the message circulation of window, get access to this incident (MSG_XFERREADY).At this moment, ActiveX control is provided with filename by DAT_SETUPFILEXFER, obtains image in file with DAT_IMAGEFILEXFER then.
7) close the scanning interface
In the message circulation of window, get access to MSG_CLOSEDSREQ or MSG_CLOSEDSOK message, can close scanning interface (MSG_DISABLEDS).
8) close DS
Message is MSG_CLOSEDS.
9) close data source
Message is MSG_CLOSEDSM.
Two, raise with the scanning of above-mentioned ActiveX control realization at webpage, and scanning result is uploaded in the server automatically, realize that the user exempts to install scanned document document.
The present invention adopts ActiveX control encapsulation scanner control function module, and the user only needs browsing page, does not need install software, just can realize the high-velocity scanning of document on webpage.
Claims (2)
1, by the method for webpage scanned document, it is characterized in that: realize as follows:
One, the Twain.dll encapsulation that carries by use Windows system in ActiveX control comprises selection, scanning resolution setting, preservation formatting, the driven sweep instrument high-velocity scanning document of scanner to the control of scanner;
Two, raise with the scanning of above-mentioned ActiveX control realization at webpage, and scanning result is uploaded in the server automatically, realize that the user exempts to install scanned document document.
2, the method by the webpage scanned document according to claim 1 is characterized in that: above-mentionedly use the Twain interface to obtain image in ActiveX to realize as follows:
1) opens DSM;
2) select DS;
3) open DS;
4) parameter is set;
5) reading scan interface;
6) obtain image;
7) close the scanning interface;
8) close DS;
9) close data source.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710009140 CN101075243A (en) | 2007-06-26 | 2007-06-26 | Method for scanning files by webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710009140 CN101075243A (en) | 2007-06-26 | 2007-06-26 | Method for scanning files by webpage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101075243A true CN101075243A (en) | 2007-11-21 |
Family
ID=38976296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710009140 Pending CN101075243A (en) | 2007-06-26 | 2007-06-26 | Method for scanning files by webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101075243A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340513A (en) * | 2010-07-15 | 2012-02-01 | 江苏国光信息产业股份有限公司 | WinCE system-based method for realizing scanning in remote desktop mode |
CN102520985A (en) * | 2011-11-29 | 2012-06-27 | 深圳市万兴软件有限公司 | System and method for running client software |
CN103581486A (en) * | 2013-10-09 | 2014-02-12 | 苏州网信信息科技有限公司 | Web-based online scanning method |
CN105611102A (en) * | 2015-11-18 | 2016-05-25 | 北京中电普华信息技术有限公司 | Method and device for collecting electronic image via browser |
CN106534607A (en) * | 2016-10-20 | 2017-03-22 | 北京先进数通信息技术股份公司 | Image scanning method and device |
CN111107140A (en) * | 2019-12-12 | 2020-05-05 | 山东浪潮通软信息科技有限公司 | System and method for controlling scanner by web application |
-
2007
- 2007-06-26 CN CN 200710009140 patent/CN101075243A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340513A (en) * | 2010-07-15 | 2012-02-01 | 江苏国光信息产业股份有限公司 | WinCE system-based method for realizing scanning in remote desktop mode |
CN102520985A (en) * | 2011-11-29 | 2012-06-27 | 深圳市万兴软件有限公司 | System and method for running client software |
CN102520985B (en) * | 2011-11-29 | 2014-09-24 | 深圳万兴信息科技股份有限公司 | System and method for running client software |
CN103581486A (en) * | 2013-10-09 | 2014-02-12 | 苏州网信信息科技有限公司 | Web-based online scanning method |
CN105611102A (en) * | 2015-11-18 | 2016-05-25 | 北京中电普华信息技术有限公司 | Method and device for collecting electronic image via browser |
CN106534607A (en) * | 2016-10-20 | 2017-03-22 | 北京先进数通信息技术股份公司 | Image scanning method and device |
CN111107140A (en) * | 2019-12-12 | 2020-05-05 | 山东浪潮通软信息科技有限公司 | System and method for controlling scanner by web application |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101075243A (en) | Method for scanning files by webpage | |
US7315389B2 (en) | Electronic document assembly, proofing and printing system | |
US6049636A (en) | Determining a rectangular box encompassing a digital picture within a digital image | |
CN101076073A (en) | Image reading system, information processing equipment and scanner | |
CN1855988A (en) | Image scanning apparatus with preview function and method therefor | |
US20100277774A1 (en) | Image quality indicator responsive to image processing | |
CN1438800A (en) | Image reading apparatus | |
CN1893522A (en) | Apparatus and method of controlling scanner | |
CN1829220A (en) | Mapping method for USB apparatus with storage function on network computer | |
CN1461138A (en) | Image fetch equipment and control method and program thereof | |
CN1835499A (en) | Realizing method of page access | |
US20040042034A1 (en) | Facsimile transmission according to recipient preferences | |
CN1848902A (en) | Digital duplicating equipment with intelligent adapting function and duplicating method thereof | |
CN1133874C (en) | Method and device for synchronously acquiring displacement data | |
CN104462601A (en) | File scanning method, device and system | |
CN112202982A (en) | Book scanner for office | |
CN1264330C (en) | Closed-loop controller and control method for improving the scanning quality of gimbal scanner | |
US20020067224A1 (en) | System and method for scanner executing scanning | |
CN1519715A (en) | Loading method of software and sotrage medium | |
CN1504889A (en) | Dynamic adjusting method for function of program module according to resource state | |
CN1870713A (en) | Image combination method | |
CN1878272A (en) | Method for carrying out real-time monitoring using mobile phone with camera function | |
CN2834050Y (en) | Portable electronic recording pen | |
CN1474346A (en) | Optical module corrector of paper feeding scanner | |
TW563331B (en) | Method and structure for changing a scanning resolution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |