DOS File Method - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

If the DOS file name method is chosen, the Batch Interface Library writes all information communicated from the server to the supplied file name. This is the only method a language like Visual Basic™ supports.

Each call to the function OCRFFAPI_BatchProcess() creates the file, which overwrites any existing file of the same name.

All fields in the record are separated by a single space. Any string data type that is not applicable will be replaced with a comma (,) and any integer data type that is not applicable is replaced with zero (0).

The first byte of each record in the file determines the type of the information.

Type

identifier

Value

Messages

API_MESSAGE

1

Job Status

API_STATUS

2

Job Complete

COMPLETE

4

Job Start

API_JOB_START

5

API_MESSAGE

OCR for AnyDoc sent either an informational message or an error occurred to the client. Format:

Value

Description

integer

OCR for AnyDoc Message/Error Number

string

OCR for AnyDoc Message/Error text

Example
1 1004 Disk Import process is complete

API_STATUS/ API_JOB_START

Used to communicate status information for each image processed from OCR for AnyDoc to the Client program. Strings that do not apply to the phase are equal to “,”. Format:

Value

Description

integer

Current Process

integer

Process Status Flag

integer

Image Sequence Number

integer

Total Number of Images in Batch

string

Form Family

string

Master Template

string

Batch ID

string

Data Image Name

string

User ID (“OCRFF” if not signed on to a network)

integer

Total Characters Processed

integer

Total Questionable Characters

integer

Requires Verification Switch (extraction only)

integer

Attachment Page Switch

string

Text File Name

string

Original Import File Name

string

Phase Specific Value

integer

Phase Specific Value

Example ( indicates line is wrapped)

2 16 0 1 3 test.fof nwtest.tif 00012111 c:\ocrff\jobs\test.fof\00012111\00089084.tif ¿

MERIT 12 0 0 0 c:\ocrff\data\test.fof\97_11_11\00012111.txt c:\ocrff\import\abc001.tif, 0

2 16 0 2 3 test.fof nwtest.tif 00012111 c:\ocrff\jobs\test.fof\00012111\0089085.tif ¿

MERIT 12 0 0 0 c:\ocrff\data\test.fof\97_11_11\00012111.txt c:\ocrff\import\abc002.tif, 0

2 16 2 3 3 test.fof attchmnt 00012111 c:\ocrff\jobs\test.fof\00012111\0089086.tif ¿

MERIT 0 0 0 1 c:\ocrff\data\test.fof\97_11_11\00012111.txt c:\ocrff\import\abc003.tif , 0

OCRFFAPI_JobAbort

Aborts a transaction in progress by the server. Behaves exactly like the Cancel button on an OCR for AnyDoc process window.

void OCRFF_API
OCRFFAPI_JobAbort(void);
void CClientDlg::OnAbort()
{
// TODO: Add your control notification handler code here
OCRFFAPI_JobAbort();
}

OCRFFAPI_GetNumberofImagesProcessed

Used to request the number of images processed in the previous call to OCRFFAPI_BatchProcess().

int OCRFF_API
OCRFFAPI_GetNumberofImagesProcessed(void);
LRESULT CClientDlg::ProcessComplete(WPARAM,LPARAM lParam)
{
ClientDialogEnable(TRUE);
int nImagesProcessed = OCRFFAPI_GetNumberofImagesProcessed();
CString strMessage;
StrMessage.Format("Complete -> OCR for AnyDoc finished work for %d jobs", nImagesProcessed);
AddToInfoArea(strMessage);
return 0L;
}

OCRFFAPI_Error2String

Converts the error code returned from the Batch Interface Library to its ASCII equivalent. A successful operation returns OCRFF_SUCCESS, which has a value of one. A return value OCRFF_NO_WORK also indicates a successful operation, however there was no work to process for the function. OCRFF_NO_WORK has a value of 31. Any other returned values indicate a failure.

void OCRFF_API
OCRFFAPI_Error2String(int nError, char *pszBuffer);

Value

Description

nError

The integer error returned from a Batch Interface Library function.

pszBuffer

Points the buffer to receive the ASCII translation of the error code.

int nReturn = OCRFFAPI_Connect(
"c:\\program files\Hyland\OCR for AnyDoc\OCRforAnyDoc.exe",FALSE);
if (nReturn != OCRFF_SUCCESS)
{
char szMsg[100];
OCRFFAPI_Error2String(nReturn,szMsg);
MessageBox(GetActiveWindow(),szMsg,"Client",MB_ICONSTOP);
}

OCRFFAPI_GetSystemInfo

Returns information about the OCR for AnyDoc environment including the hardware key configuration, OCR for AnyDoc version, network login name, master template path and mask, Control path and Table path (from Settings | System Directories).

int OCRFF_API
OCRFFAPI_GetSystemInfo(LPSYSINFOSTRUCT lpSysInfo);

lpSysInfo

Pointer to a SYSINFOSTRUCT structure defined in ocrffapi.h and allocated by the client that is used to request details about the OCR for AnyDoc environment.

Value

Description

nStructureSize

The size of the SYSINFOSTRUCT structure the client program is using. The size of the structure can be used to compare the size of the Client's defined structure against the size of the structure being used by the interface library and OCR for AnyDoc. This protects OCR for AnyDoc from having a version mismatch with the client.

nHardwareKeyCapabilities

The bit-wise integer value representing the configuration of the hardware key.

Process

Identifier

Value

Scan

BATCH_API_SCAN

1

Import

BATCH_API_IMPORT

2

Quality Assure

BATCH_API_QA

512

Rescan

BATCH_API_RESCAN

1024

Review

BATCH_API_REVIEW

16384

Identification

BATCH_API_IDENTIFY

4

Exception Handler

BATCH_API_EXCEPTION

8

Extraction

BATCH_API_EXTRACT

16

Rules Validation

BATCH_API_RULES_VALIDATION

4096

Verification (HSV)

BATCH_API_VERIFY_HSV

8192

Verification (Pass 1)

BATCH_API_VERIFY

32

Verification (Pass 2)

BATCH_API_VERIFY_PASS_2

128

Verification (Supervisor)

BATCH_API_VERIFY_SUPERVISOR

256

Verification (Balancing)

BATCH_API_VERIFY_BALANCING

2048

Commit

BATCH_API_COMMIT

64

Value

Description

szOCRFFVersion

The version of the OCR for AnyDoc executable.

szUserName

The network login name for the OCR for AnyDoc station.

szMasterPath

The master template path for the OCR for AnyDoc station (Settings | System Directories).

szMasterExt

The master form template extension for the OCR for AnyDoc station.

szControlPath

The Control path for the OCR for AnyDoc station (Settings | System Directories).

szTablePath

The Table path for the OCR for AnyDoc station (Settings | System Directories).

SYSINFOSTRUCT SysInfo;
char szMsg[100];
/* initialize structures */
memset(&SysInfo,0x00,sizeof(SYSINFOSTRUCT));
SysInfo.nSysInfoStructureSize = sizeof(SYSINFOSTRUCT);
If (OCRFFAPI_GetSystemInfo(&SysInfo) == OCRFF_SUCCESS)
{
wsprintf(szMsg,"OCR for AnyDoc Version %s",SysInfo.szOCRFFVersion);
SendDlgItemMessage(hDlg,IDD_INFO,LB_ADDSTRING,0,(LONG)(szMsg));
wprintf(szMsg,"OCRFF User Name -> %s",SysInfo.szUserName);
SendDlgItemMessage(hDlg,IDD_INFO,LB_ADDSTRING,0,(LONG)(szMsg));
SetDlgItemText(hDlgClient,IDD_MASTER_PATH,SysInfo.szMasterPath);
szBuffer[0] = NULL;
if(SysInfo.nHardwareKeyCapabilities & BATCH_API_EXTRACT)
strcat(szBuffer,"Extract”);
if(SysInfo. nHardwareKeyCapabilities & BATCH_API_VERIFY)
strcat(szBuffer,"Verification");
sprintf(szMsg," Hardware Key Configuration -> %s",szBuffer);
SendDlgItemMessage(hDlg,IDD_INFO,LB_ADDSTRING,0,(LONG)(szMsg));
}

OCRFFAPI_GetFirstFormFamily/OCRFFAPI_GetNextFormFamily

Returns the form families (.FOF) available for processing from OCR for AnyDoc.

The client application must first call OCRFFAPI_GetFirstFormFamily() to retrieve the first form family. Each successive call to OCRFFAPI_GetNextFormFamily() returns the next form family. When the return value is not equal to OCRFF_SUCCESS, all form families have been received.

int OCRFF_API
OCRFFAPI_GetFirstFormFamily(char *pszFOF);
int OCRFF_API
OCRFFAPI_GetNextFormFamily(char *pszFOF);

pszFOF

Points the buffer to receive each form family.

char szFOF[OCRFFAPI_SIZE_FILENAME];
if (OCRFFAPI_GetFirstFormFamily(szFOF) == OCRFF_SUCCESS)
{
SendDlgItemMessage(hDlg,IDC_FOFLIST,LB_ADDSTRING,0, szFOF);
while(OCRFFAPI_GetNextFormFamily(szFOF) == OCRFF_SUCCESS)
SendDlgItemMessage(hDlg,IDC_FOFLIST,LB_ADDSTRING,0,szFOF);
}

OCRFFAPI_GetFirstBatch/OCRFFAPI_GetNextBatch

Returns the pending batches for the specified form family.

The client application must first call OCRFFAPI_GetFirstBatch() to retrieve the first pending batch. Each successive call to OCRFFAPI_GetNextBatch() returns the next pending batch. When the return value is not equal to OCRFF_SUCCESS, all pending batches have been received.

int OCRFFAPI_API
OCRFFAPI_GetFirstBatch (LPSTR pszFOF,
LPBATCHDETAILSTRUCT lpBatchDetail,
int *pnTotalBatches);
int OCRFFAPI_API
OCRFFAPI_GetNextBatch (LPBATCHDETAILSTRUCT lpBatchDetail)

Option

Description

pszFOF

Points the buffer to specify the form family to retrieve the pending batches.

lpBatchDetail

Pointer to a BATCHDETAILSTRUCT structure defined in ocrffapi.h and allocated by the client that contains details about each batch returned.

nStructureSize

The size of the BATCHDETAILSTRUCT structure.

szBatchID

The eight digit batch identifier assigned by OCR for AnyDoc.

nPrioritized

A yes/no indication of whether or not the batch is prioritized.

nSuspended

A yes/no indication of whether or not the batch is suspended.

nTotalImages

The total number if images in the batch.

nPendingQualityAssure

The number of images pending Quality Assurance.

nPendingRescan

The number of images pending Rescan.

nPendingReview

The number of images pending Review.

nPendingIdentify

The number of images pending Identification.

nPendingException

The number of images pending the Exception Handler.

nPendingExtract

The number of images pending Extraction.

nPendingRulesValidation

The number of images pending Rules Validation.

nPendingVerifyHSV

The number of images pending High Speed Verification.

nPendingVerifyPass1

The number of images pending Pass 1 Verification.

nPendingVerifyPass2

The number of images pending Pass 2 Verification.

nPendingVerifySupervisor

The number of images pending Supervisor Verification.

nPendingVerifyBalancing

The number of images pending Balancing (Total Set, Document Set or Batch) Verification.

nPendingCommit

The number of images pending Commit.

int nTotalBatches = 0;

BATCHDETAILSTRUCT BatchDetail;

memset(&BatchDetail,0x00,sizeof(BATCHDETAILSTRUCT));

BatchDetail.nStructureSize = sizeof(BATCHDETAILSTRUCT);

if (OCRFF_SUCCESS == OCRFFAPI_GetFirstBatch(szFOF,&BatchDetail,&nTotalBatches))

{

CString strBuffer;

strBuffer.Format("Form Family %s has %d pending batches", szFOF,nTotalBatches);

AddToInfoArea(strBuffer);

AddBatch(&BatchDetail);

while(OCRFF_SUCCESS == OCRFFAPI_GetNextBatch(&BatchDetail))

AddBatch(&BatchDetail);

}

OCRFFAPI_BatchAction

Performs an operation, such as delete, prioritize, suspend, or unsuspend on the specified batch for the specified form family.

int OCRFFAPI_API
OCRFFAPI_BatchAction (LPBATCHACTIONSTRUCT lpBatchAction);

Option

Description

lpBatchAction

Pointer to a BATCHACTIONSTRUCT structure defined in OCRFFAPI.H and allocated by the client that specifies the action to perform on the batch.

nStructureSize

The size of the BATCHACTIONSTRUCT structure.

nBatchAction

The action to perform on the specified batch.

Action

Identifier

Value

Delete Batch

BATCH_ACTION_DELETE

1

Prioritize Batch

BATCH_ACTION_PRIORITIZE

2

Suspend Batch

BATCH_ACTION_SUSPEND

3

Unsuspend Batch

BATCH_ACTION_UNSUSPEND

4

Option

Description

bBatchActionOK

Switch filled in by OCR for AnyDoc indicating the success of the batch action.

szFormFamily

The form family to perform the batch action.

szBatchID

The 8-digit batch identifier to perform the batch action.

BATCHACTIONSTRUCT BatchAction;
memset(&BatchAction,0x00,sizeof(BATCHACTIONSTRUCT));
BatchAction.nStructureSize = sizeof(BATCHACTIONSTRUCT);
lstrcpy(BatchAction.szFormFamily,”test.fof”);
lstrcpy(BatchAction.szBatchID,”00001234
BatchAction.nBatchAction = BATCH_ACTION_DELETE;
int nReturn = OCRFFAPI_BatchAction(&BatchAction);
if (nReturn != OCRFF_SUCCESS)
{
char szMsg[100];
OCRFFAPI_Error2String(nReturn,szMsg);
MessageBox(GetActiveWindow(),szMsg,"Client Error",MB_ICONSTOP);
}

OCRFFAPI_ImageAction

Performs an operation, such as delete or pending status on the specified image in the specified batch for the specified form family.

int OCRFFAPI_API

OCRFFAPI_ImageAction (LPIMAGEACTIONSTRUCT lpImageAction);

Option

Description

lpImageAction

Pointer to a IMAGEACTIONSTRUCT structure defined in ocrffapi.h and allocated by the client that specifies the action to perform on the image.

nStructureSize

The size of the IMAGEACTIONSTRUCT structure.

nImageAction

The action to perform on the specified image.

Action

Identifier

Value

Image Status

IMAGE_ACTION_STATUS

1

Delete Image

BATCH_ACTION_DELETE

2

Option

Description

bImageActionOK

Switch filled in by OCR for AnyDoc indicating the success of the image action.

szFormFamily

The form family to perform the image action.

szBatchID

The 8-digit batch identifier to perform the image action.

szDataImage/nDataImageSequence

The identifier of the image to act upon. Either the data image name or the sequence number must be specified.

szDeleteRoutePath

The optional directory to route the image when specifying an nImageAction of IMAGE_ACTION_DELETE.

nPendingPhase

The processing phase the image is pending.

Process

Identifier

Value

Scan

BATCH_API_SCAN

1

Import

BATCH_API_IMPORT

2

Quality Assure

BATCH_API_QA

512

Rescan

BATCH_API_RESCAN

1024

Review

BATCH_API_REVIEW

16384

Identification

BATCH_API_IDENTIFY

4

Exception Handler

BATCH_API_EXCEPTION

8

Extraction

BATCH_API_EXTRACT

16

Rules Validation

BATCH_API_RULES_VALIDATION

4096

Verification (HSV)

BATCH_API_VERIFY_HSV

8192

Verification (Pass 1)

BATCH_API_VERIFY

32

Verification (Pass 2)

BATCH_API_VERIFY_PASS_2

128

Verification (Supervisor)

BATCH_API_VERIFY_SUPERVISOR

256

Verification (Balancing)

BATCH_API_VERIFY_BALANCING

2048

Commit

BATCH_API_COMMIT

64

IMAGEACTIONSTRUCT ImageAction;
memset(&ImageAction,0x00,sizeof(IMAGEACTIONSTRUCT));
ImageAction.nStructureSize = sizeof(IMAGEACTIONSTRUCT);
lstrcpy(ImageAction.szFormFamily,”test.fof”);
lstrcpy(ImageAction.szBatchID,”00001234
Istrcpy(ImageAction.szDataImage,”00890001.tif”);
lstrcpy(ImageAction.szDeleteRoutePath,”c:\\deleted”);
ImageAction.nImageAction = IMAGE_ACTION_DELETE;
if (OCRFFAPI_ImageAction(&ImageAction)== OCRFF_SUCCESS)
{
CString strMessage;
strMessage.Format("Image Deleted for %s-%s-%s -> pending",ImageAction.szFormFamily,ImageAction.szBatchID,ImageAction.szDataImage);
switch (ImageAction.nPendingPhase)
{
case BATCH_API_QA:
strMessage += "QA";break;
case BATCH_API_IDENTIFY:
strMessage += "Identify";break;
case BATCH_API_EXCEPTION:
strMessage += "Exception";break;
case BATCH_API_EXTRACT:
strMessage += "Extract";break;
case BATCH_API_VERIFY:
strMessage += "Verify/Pass 1";break;
case BATCH_API_VERIFY_PASS_2:
strMessage += "Verify/Pass 2";break;
case BATCH_API_VERIFY_SUPERVISOR:
strMessage += "Verify/Supervisor";break;
case BATCH_API_COMMIT:
strMessage += "Commit";break;
}
m_pClientDlg->AddToInfoArea(strMessage);
}

OCRFFAPI_SetUserName

Overrides the programmatically queried network user name for the OCR for AnyDoc session. Useful to distinguish between three shifts of Verification operators without having to set up the PC/station with three different logins.

int OCRFF_API
OCRFFAPI_SetUserName(LPCSTR pszUserName);

pszUserName

Points the buffer to override the OCR for AnyDoc user name

int nReturn = OCRFFAPI_ SetUserName(“SUPERVISOR”);
if (nReturn != OCRFF_SUCCESS)
{
char szMsg[100];
OCRFFAPI_Error2String(nReturn,szMsg);
MessageBox(GetActiveWindow(),szMsg,"Client Error",MB_ICONSTOP);
}

OCRFFAPI_GetFamilyInfo

Returns information about the specified form family including the description, Import path, and configured Verification operators.

int OCRFF_API
OCRFFAPI_GetFamilyInfo(LPFOFINFOSTRUCT lpFofInfo);

Option

Description

lpFofInfo

Pointer to a FOFINFOSTRUCT structure defined in ocrffapi.h and allocated by the client that is used to request details about the specified form family.

nStructureSize

The size of the FOFINFOSTRUCT structure the client program is utilizing.

szFormFamily

The name of the master template to request the information filled in by the client.

szImportPath

The Import path for the specified form family.

szVerificationOperators/ szPass2VerificationOperators/ szSupervisorVerificationOperators

The assigned Verification operators for the specified form family.

FOFINFOSTRUCTFofInfo;
memset(&FofInfo,0x00,sizeof(FOFINFOSTRUCT));
FofInfo.nStructureSize = sizeof(FOFINFOSTRUCT);
lstrcpy(FofInfo.szFormFamily,”test.fof”);
if (OCRFFAPI_GetFamilyInfo(&FofInfo) == OCRFF_SUCCESS)
{
CString strBuffer;
strBuffer.Format("\tImport Path -> %s",FofInfo.szImportPath);
AddToInfoArea(strBuffer);
strBuffer.Format("\tVfy Operators (Pass 1) -> %s",FofInfo.szVerificationOperators);
AddToInfoArea(strBuffer);
strBuffer.Format("\tVfy Operators (Pass 2) -> %s",FofInfo.szPass2VerificationOperators);
AddToInfoArea(strBuffer);
}

OCRFFAPI_GetFirstHistoryBatch/OCRFFAPI_GetNextHistoryBatch

Returns the Committed batches for the specified form family before the optionally specified date. The batch history log must exist for a Committed batch to be returned. e.g. ...AnyDoc\OCR for AnyDoc\jobs\test.fof\00001234.log).

The client application must first call OCRFFAPI_GetFirstHistoryBatch() to retrieve the first Committed batch. Each successive call to OCRFFAPI_GetNextHistoryBatch() returns the next Committed batch. When the return value is not equal to OCRFF_SUCCESS, all Committed batches have been received.

int OCRFFAPI_API
OCRFFAPI_GetFirstHistoryBatch (LPSTR pszFOF, LPSTR pszDate
LPBATCHHISTORYSTRUCT lpBatchHistory, int *pnTotalBatches);
int OCRFFAPI_API
OCRFFAPI_GetNextHistoryBatch (LPBATCHHISTORYSTRUCTlpBatchHistory)

Option

Description

pszFOF

Points the buffer to specify the form family to retrieve the Committed batches.

pszDate

Points the buffer to specify the optional date. Batches Committed before the date are returned.

lpBatchHistory

Pointer to a BATCHHISTORYSTRUCT structure defined in ocrffapi.h and allocated by the client that contains details about each batch returned.

nStructureSize

The size of the BATCHHISTORYSTRUCT structure.

szBatchID

The 8-digit batch identifier assigned by OCR for AnyDoc.

szCommitDate

The date the batch was Committed.

szCommitTime

The time the batch was Committed.

nTotalImages

The total number of images in the batch.

nCanResubmit

A yes/no indication of whether or not the batch can be resubmitted.

nCanRecommit

A yes/no indication of whether or not the batch can be recommitted.

int nTotal = 0;

BATCHHISTORYSTRUCT BatchDetail;

memset(&BatchHistory,0x00,sizeof(BATCHHISTORYSTRUCT));

BatchHistory.nStructureSize = sizeof(BATCHHISTORYSTRUCT);

if (OCRFF_SUCCESS == OCRFFAPI_GetFirstHistoryBatch(szFOF,szDate,& BatchHistory,&nTotal))

{

CString strBuffer;

strBuffer.Format("Form Family %s has %d committed batches before %s",szFOF,szDate,nTotal);

AddToInfoArea(strBuffer);

AddHistoryBatch(&BatchHistory);

while(OCRFF_SUCCESS ==

OCRFFAPI_GetNextHistoryBatch(&BatchHistory))

AddHistoryBatch(&BatchHistory);

}

OCRFFAPI_Archive

Performs archiving capabilities for Committed batches. The batch history log must exist for a batch to be archived (e.g., ...AnyDoc\OCR for AnyDoc\jobs\test.fof\00001234.log).

int OCRFFAPI_API
OCRFFAPI_BatchArchive (LPBATCHARCHIVESTRUCT lpBatchArchive);

Option

Description

lpBatchArchive

Pointer to a BATCHARCHIVESTRUCT structure defined in ocrffapi.h, and allocated by the client that specifies the archive options for the form family.

nStructureSize

The BATCHARCHIVESTRUCT structure's size.

bArchiveOK

Switch filled in by OCR for AnyDoc indicating the success of the archive process.

szArchiveDate

If specified, only batches committed on or before the specified date are archived. If not specified, all Committed batches are archived.

The szArchiveDate parameter can take a variety of formats. However, always specify the full year. For example, the following strings contain acceptable date/time formats: "25 January 1996", "January 25", "Jan. 25, 1996", "1/25/1996".

szFormFamily

The form family to perform the archive.

szBatchID

If specified, only the specified batch is archived.

szBackupCMPFile

The optional, fully qualified backup file name for the batch. If specified, the backup ZIP file contains the batch history log (.LOG), the archived images (.TIF), and the ASCII output (.TXT).

nDeleteText

Switch to determine if the ASCII output is deleted.

nDeleteImages

Switch to determine if the archive images are deleted.

nDeleteLog

Switch to determine if the batch history log is deleted.

nPurgeDBCommitted

Switch to determine if Committed batches are purged from the log database.

nPurgeDBDeleted

Switch to determine if deleted batches are purged from the log database.

BATCHARCHIVESTRUCT BatchArchive;
memset(&BatchArchive,0x00,sizeof(BATCHARCHIVESTRUCT));
BatchArchive.nStructureSize = sizeof(BATCHARCHIVESTRUCT);
lstrcpy(BatchArchive.szFormFamily,”test.fof”);
lstrcpy(BatchArchive.szBatchID,”00001234);
lstrcpy(BatchArchive.szBackupCMPFile,”c:\\ocrff\backup\00001234.cmp”);
BatchArchive.nDeleteText = TRUE;
BatchArchive.nDeleteImages = TRUE;
BatchArchive.nDeleteLog = TRUE;
BatchArchive.nPurgeLogDBCommitted = TRUE;
BatchArchive.nPurgeLogDBDeleted = TRUE;
int nReturn = OCRFFAPI_ Archive (&BatchArchive);
if (nReturn != OCRFF_SUCCESS)
{
char szMsg[100];
OCRFFAPI_Error2String(nReturn,szMsg);
MessageBox(GetActiveWindow(),szMsg,"Client Error",MB_ICONSTOP);
}

OCRFFAPI_DisplayGUI

Displays the specified OCR for AnyDoc user interface.

int OCRFFAPI_API
OCRFFAPI_DisplayGUI (int nGUIToDisplay, LPCSTR pszFamily);

nGUIToDisplay

Identifies the OCR for AnyDoc graphical user interface area to display.

User Interface

Identifier

Value

Form Manager|Pending

OCRFFGUI_FORMMGR_PENDING

1

Form Manager|History

OCRFFGUI_FORMMGR_HISTORY

2

Management|User Admin

OCRFFGUI_MGMNT_USERADMIN

3

Management|File

OCRFFGUI_MGMNT_FILE

4

Management|Table

OCRFFGUI_MGMNT_TABLE

5

Management|Form Family

OCRFFGUI_MGMNT_FOF

6

Management|Log DB Viewer

OCRFFGUI_MGMNT_LOGDB

7

Management|User Productivity

OCRFFGUI_MGMNT_USERPROD

8

pszFamily

Points to the form family for the specified user interface area.

int nReturn = OCRFFAPI_DisplayGUI(OCRFFGUI_FORMMGR_PENDING,”test.fof”);
if (nReturn != OCRFF_SUCCESS)
{
char szMsg[100];
OCRFFAPI_Error2String(nReturn,szMsg);
MessageBox(GetActiveWindow(),szMsg,"Client Error",MB_ICONSTOP);
}