You are here: Programmers Reference > Programmer's Reference > Document > Lithocode

Document.Litho-code property

Read-Write property.

Type: BSTR

This property applies only if you define litho-code grids in your ScanTools Plus application. A litho-code is an optional, binary-coded serial number unique to every form. It is a pre-printed grid that is used to check that all sheets in a booklet are from the same individual document. Refer to ScanTools Plus Help for how to do this.

When reading this property

If the document does not have a litho-code defined, an exception is thrown. Otherwise a string is returned. If this string is empty, it implies that the document is not yet, or could not be identified by ScanTools. Otherwise it contains the resolved value – this is typically numeric.

It makes sense to read this property beginning at the Resolved event thru the DocComplete event.

When writing to this property

This is permissible to write to this only when the document could not be identified; the ScanError event is fired and you wrote to the Document.DocumentNumber property as the first part of the process of programmatically identifying an unscannable document. Writing the litho-code is the second part of the process – do this only if the document has a litho-code defined. To see if a litho-code is defined, attempt to first read this property. If an exception is thrown, there is none. If it is an empty string, it has a litho-code defined and you must write to this property. Zero padding at the left is automatically performed for strings shorter than the length defined in the application definition.

Before leaving the ScanError event handler you must call ScanningManager.SetScanErrorResolution with a parameter of L_SCANERROR_RESOLUTION_IGNORE_ERROR to make your document identification effective within ScanTools. This concludes the process of programmatically identifying the document.

Valid

See ScanEventArgs and ScanningManager Events Valid Combinations.

IDL

propget, HRESULT Lithocode[out, retval] BSTR* pVal);

propput, HRESULT Lithocode[in] BSTR newVal);

Exceptions

Application has no litho-code grids for this document

DocumentNumber is not valid; as when ScanTools just failed to identify the document

Document was already identified by ScanTools

The value is too long per the application definition

You tried to write to this property at any point other than the ScanError event

 

 

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

support@scantron.com

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.