LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
JobErrorMode Property
See Also 
Leadtools.Forms.Ocr Namespace > IOcrAutoRecognizeManager Interface : JobErrorMode Property



The JobErrorMode Property is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets a value that indicates whether to abort or try to conintue running jobs when an error occur.

Syntax

Visual Basic (Declaration) 
Property JobErrorMode As OcrAutoRecognizeManagerJobErrorMode
Visual Basic (Usage)Copy Code
Dim instance As IOcrAutoRecognizeManager
Dim value As OcrAutoRecognizeManagerJobErrorMode
 
instance.JobErrorMode = value
 
value = instance.JobErrorMode
C# 
OcrAutoRecognizeManagerJobErrorMode JobErrorMode {get; set;}
C++/CLI 
property OcrAutoRecognizeManagerJobErrorMode JobErrorMode {
   OcrAutoRecognizeManagerJobErrorMode get();
   void set (    OcrAutoRecognizeManagerJobErrorMode value);
}

Property Value

An OcrAutoRecognizeManagerJobErrorMode enumeration member that specifies whether to abort or try to conintue running jobs when an error occur. Default value is OcrAutoRecognizeManagerJobErrorMode.Continue.

Example

For an example, refer to IOcrAutoRecognizeManager.RunJob.

Remarks

When the value of this property is OcrAutoRecognizeManagerJobErrorMode.Abort, any error that may occur while running a job will result in an exception being thrown.

If the value of this property is OcrAutoRecognizeManagerJobErrorMode.Continue, then none critical errors can be logged and running continues. For example, if a source document has a page that could not be recognized. The offending page will be added to the final document as a graphics images and recognition will continue to the next page. In this mode, the engine will not throw an exception if an error occur, instead, all errors will be logged into the job's IOcrAutoRecognizeJob.Errors collection. When recognition finishes, you can check if this collection is not empty and get the information of the errors and act upon them according to your application logic.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

JobErrorMode requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features