OCR_LoadTemplateW

<< Click to Display Table of Contents >>

Navigation:  OCR Module > Input List Handling >

OCR_LoadTemplateW


 

PRO SDK Icon OCR_LoadTemplateW

 


 

OCR_LoadTemplateW loads a list of input fields into a PXO_InputFields structure from an ASCII text input file. Please note that all elements are case-sensitive:

 

HRESULT OCR_LoadTemplateW(

PXO_InputFields InputFields,

LPWSTR lpwFilename,

);

 

Parameters

 

InputFields

The PXO_InputFields variable that OCR_NewInputFields created.

 

lpwFilename

The filename of the Template File to load.

 

Return Values

 

If the function succeeds then the return value is OCR_OK

 

If the function fails then the return value is an error code.

 

Comments

 

The following should be noted when this option is used:

 

Fields taken from the template file do not overwrite existing data when they are appended to InputFields.

Templates can be loaded to the end of existing lists of input fields.

Multiple template files can be loaded into a single InputFields structure with multiple calls to this function, passing the same InputFields variable in each case.

Fields can be read to blank input lists when OCR_NewInputFields has already initialized them.