LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
OcrAutoRecognizeRunJobEventArgs Class
See Also  Members  
Leadtools.Forms.Ocr Namespace : OcrAutoRecognizeRunJobEventArgs Class



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

Data for the IOcrAutoRecognizeManager.JobStarted and IOcrAutoRecognizeManager.JobCompleted events.

Object Model

OcrAutoRecognizeRunJobEventArgs ClassIOcrAutoRecognizeJob Interface

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class OcrAutoRecognizeRunJobEventArgs 
   Inherits System.EventArgs
Visual Basic (Usage)Copy Code
Dim instance As OcrAutoRecognizeRunJobEventArgs
C# 
[SerializableAttribute()]
public class OcrAutoRecognizeRunJobEventArgs : System.EventArgs 
C++/CLI 
[SerializableAttribute()]
public ref class OcrAutoRecognizeRunJobEventArgs : public System.EventArgs 

Example

For an example, refer to IOcrAutoRecognizeManager.RunJob.

Remarks

IOcrAutoRecognizeManager.JobStarted and IOcrAutoRecognizeManager.JobCompleted will trigger when Run, IOcrAutoRecognizeManager.RunJob or IOcrAutoRecognizeManager.RunJobAsync is called.

The IOcrAutoRecognizeManager.JobStarted event occurs when a job is about to start. You can use this event to keep track of the number of jobs pending running. You can also examine OcrAutoRecognizeRunJobEventArgs.Job to get information on whether the job finished successfully and get error status if any. IOcrAutoRecognizeManager.RunJob example shows complete source code of how to easily accomplish these tasks in your application.

The IOcrAutoRecognizeManager.JobCompleted event will always occur when a job is run whether the job is aborted or completed.

To abort pending jobs in a multi-threaded application using IOcrAutoRecognizeManager, you subscribe to this event and set the value of OcrAutoRecognizeRunJobEventArgs.Status to OcrAutoRecognizeManagerJobStatus.Abort. You can also examine OcrAutoRecognizeRunJobEventArgs.Job and only abort certain jobs depending on your application logic.

Inheritance Hierarchy

System.Object
   System.EventArgs
      Leadtools.Forms.Ocr.OcrAutoRecognizeRunJobEventArgs

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

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