Event Driven Scanning (sometimes called Asynchronous scanning) is based on an event-driven programming model. Programs using Event Driven Scanning accomplish their tasks primarily by responding to COM events fired by ScanningManager.
A program initiates scanning by calling ScanningManager.Scan method, which returns immediately, as it is simply a request to start the scanning cycle. Scanning then begins and the program responds to events from ScanningManager. See ScanningManagerEvents Summary.
Parameters to those events provide access to data and image clips acquired by ScanTools Runtime, and information about any errors that occur. The scanning session might be terminated by ScanTools Runtime, for example when all forms are scanned and the user clicks the Stop button on the ScanTools error dialog, or by the solution program, via a call to ScanningManager.Stop.
These events are received during the scanning cycle, in the order of occurrence:
The following events are only received if the program is performing its own custom error handling:
The following events are only received when performing scanner setup:
All events have as a parameter an instance of ScanEventArgs, which is valid only within the scope of the event handler. The properties and methods of ScanEventArgs include:
The availablity of individual properties and methods of ScanEventArgs and its child objects depends on the event (see the ScanEventArgs Access Matrix); for example, RejectDocument() can only be called at the DocStacked event and will return an error at other times.
The complete ASCII record (including score and conversion fields) for a document is available in the Document.DataRecordInNCSFormat property.
You can use the Document.ConnectionString property to open an ADO connection to DataServices and get SQL access to document data. Other methods of Document and Sheet facilitate access via Data Services by returning the serial number, sheet number, the names of the resolved fields, and the names of the archive index fields.
The ClipHelper object contains many properties and methods that support the taking of image clips during scanning, possibly based on scan-time criteria.
To implement event driven scanning, your solution program code should do the following:
How to Manage the Connection to ScanTools Plus Link Runtime
Updating the Output Record with Data Services
Also see the sample programs installed with the SDK; they provide specific ways of implementing event-driven scanning. Installed Samples Overview
See Help on Help for additional information on using this help file. See Scantron Technical Support for additional information on technical support and training options. See the ScanTools Suite System Requirements for further details on hardware and software requirements. ScanTools is a suite of products; the specific information you want may appear in the help for a different module. If you don't find what you're looking for here, try one of the following:
|
Scantron Corporation
Customer Service (forms, products, and services): 1-800-SCANTRON (722-6876) Technical Support: 1-800-445-3141 |
|
Copyright © 1998-2012 Scantron Corporation. All rights reserved. Use permitted only under license. www.scantron.com. No part of the Help or user guides may be reproduced in any form, or by any means, without express permission from Scantron Corporation. LINKS TO THIRD PARTY SITES This help system may contain links to third party websites ("Linked Sites"). The Linked Sites are not under the control of Scantron and Scantron is not responsible for the content of any Linked Site, including without limitation any link contained in a Linked Site or any changes or modifications to a Linked Site. Scantron is not responsible for web casting or any other form of transmission received from any Linked Site. Scantron provides Users with the ability to link the Assessment System to the Linked Sites as a convenience to you, and the inclusion of any link does not imply endorsement by Scantron of the Linked Site or any association with its operators. |