You are here: User Exits Overview > User Exits and the Scanning Cycle

User Exits and the Scanning Cycle

The following procedure outlines the scanning program. It shows when user exits occur in relation to other events in the program and lists some actions you can cause with the user exit. The diagram at the end of this topic summarizes the scanning actions and where user exits can occur.

NOTE: ONERRORcan occur at any time during the scanning process whenever a scanning error occurs.

NOTE: Field data areas that are not populated by a grid:
Usually ScanTools Plus fills the entire field with spaces (" ") before filling the used portions of the field with data from a grid. There are cases, however, where unused field data is not cleared with spaces. This typically occurs in the following situations:

If your external data processing application requires that all unused field data be empty in all cases then you must use literal grids to fill the empty parts of the fields.

  1. Record buffers, mark buffers, and document structures are initialized.

INIT. You can initialize buffers that will be used at later user exits, open any files you can need, or query for information from the user. This is called one time per batch, before any sheets are scanned.

  1. The sheet is picked and scanned by the scanner.

ACQUIRE. This is called on every sheet, after it has been scanned and digitized, but before the form ID lookup has been done. You can alter the OMR image buffer, usually to add form ID marks.

  1. Form ID marks and skew marks are checked.
  2. The document is checked for booklet sequence and/or document sequence. If a form ID, skew mark, booklet or document sequence error is detected, scanning error processor takes over, and DOCCHK user exit is not called.

DOCCHK. You can suppress grid resolution. This is called on every sheet.

  1. The sheet is resolved, including checking for the number of timing marks. If there is a timing mark error, the grid resolution results are discarded, error processor takes over, and RESOLVE user exit is not called.

RESOLVE. You can alter the results of grid resolution. This is called on every sheet.

  1. The sheet is examined for edit failures.

PRESCORE. You can alter the contents of the data record before online scoring occurs, or suppress online scoring for a document. This is called one time per document, on the last sheet.

  1. Online scoring occurs (only for the last sheet of a document, when a score profile is used during scanning).

XPRINT. You can alter the print string. This is called on every sheet.

  1. Transport printing occurs.

DOCLIP At this time it is possible to enable users to do their image clipping after the next sheet is fed. This enables this clip time to be hidden in the feed for the next sheet. DOCLIP is not required for iNSIGHT 70/150, 5000i, iNSIGHT 20, or iNSIGHT 30 scanners. However, any user exit intended to run on both an OpScan iNSIGHT 70/150, 5000i, iNSIGHT 20, or iNSIGHT 30 scanner and an OpScan iNSIGHT 2/4 scanner with imaging should use DOCLIP to do its clipping.For Image Scanner Implementation Only. (

  1. Continue loop, steps 2 - 8, until there are no more sheets in the document. At this point the document is completely scanned and stacked.

DOCDONE. You can alter the record from the scanned document before it is written to the output buffer, or reject the document and the record will not be written to disk. This is called one time per document; if it is a booklet, after the last sheet has been scanned.

  1. If performing online conversion for Delimited ASCII (.dlm) or SPSS (Windows) formats, use PRECONVERTHDR to stop scanning after the first document has completed processing, but before the conversion header has been created. This is called one time, at the first sheet of the batch.
  2. If performing online conversion for Delimited ASCII (.dlm) or SPSS (Windows) formats, use POSTCONVERTHDR to stop scanning after the first document has completed processing, after the conversion header has been created, but before it is written. This is called one time, at the first sheet of the batch.
  3. If performing online conversion for all formats except Delimited ASCII (.dlm) or SPSS Windows, use PRECONVERT to suppress online conversion or to alter the contents of the data record before online conversion occurs. This is called one time per document.
  4. For all formats except Delimited ASCII (.dlm) or SPSS Windows: online file conversion occurs (only for the last sheet of a document).

Use POSTCONVERT to prevent the converted output data record from being written for this document. This is called one time per document.

  1. The record is written to the output buffer.
  2. Continue loop, steps 2 through 11, until no more documents are the batch.

CLEANUP. You can do end-of-batch processing here.

Scanning errors can occur at almost any point in the scanning cycle listed above, which means that online edit correction is done asynchronously to the main flow. PRECORRECT occurs just before online edit correction, whenever a new record is ready to be presented in the Edit Correction dialog box.

See Scanner Errors and User Exit Sequence for information about how errors impacts the sequence of user exits.

The Scanning Cycle and the Occurrence of User Exits

This diagram summarizes the scanning cycle and the occurrence of user exits, except for PRECORRECT.

 

 

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)

www.scantron.com

Technical Support:

1-800-445-3141

[email protected]

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.