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



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

Occurs when a job is completed or aborted.

Syntax

Visual Basic (Declaration) 
Event JobCompleted As EventHandler(Of OcrAutoRecognizeRunJobEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As IOcrAutoRecognizeManager
Dim handler As EventHandler(Of OcrAutoRecognizeRunJobEventArgs)
 
AddHandler instance.JobCompleted, handler

Event Data

The event handler receives an argument of type OcrAutoRecognizeRunJobEventArgs containing data related to this event. The following OcrAutoRecognizeRunJobEventArgs properties provide information specific to this event.

PropertyDescription
Job Gets the job that triggered this event.
Status Gets or sets a value indicating whether to continue or abort current job.

Example

For an example, refer to IOcrAutoRecognizeManager.RunJob.

Remarks

This event will occur when Run, IOcrAutoRecognizeManager.RunJob or IOcrAutoRecognizeManager.RunJobAsync is called.

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 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.

The IOcrAutoRecognizeManager.JobStarted event occurs when a job is about to start.

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

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