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.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 |
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.
System.Object
System.EventArgs
Leadtools.Forms.Ocr.OcrAutoRecognizeRunJobEventArgs
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7