LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)
LEAD Technologies, Inc

OcrAutoRecognizeRunJobEventArgs Class






Members 
Contains data for the IOcrAutoRecognizeManager.JobStarted and IOcrAutoRecognizeManager.JobCompleted events. .NET support
Object Model
OcrAutoRecognizeRunJobEventArgs ClassIOcrAutoRecognizeJob Interface
Syntax
[SerializableAttribute()]
public class OcrAutoRecognizeRunJobEventArgs : System.EventArgs 
'Declaration
 
<SerializableAttribute()>
Public Class OcrAutoRecognizeRunJobEventArgs 
   Inherits System.EventArgs
'Usage
 
Dim instance As OcrAutoRecognizeRunJobEventArgs
public sealed class OcrAutoRecognizeRunJobEventArgs : ~Remove~ 
function Leadtools.Forms.Ocr.OcrAutoRecognizeRunJobEventArgs()
[SerializableAttribute()]
public ref class OcrAutoRecognizeRunJobEventArgs : public System.EventArgs 
Remarks

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

The 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. RunJob example shows complete source code of how to easily accomplish these tasks in your application.

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

Example
For an example, refer to RunJob.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

OcrAutoRecognizeRunJobEventArgs Members
Leadtools.Forms.Ocr Namespace
Programming with the LEADTOOLS .NET OCR
Multi-Threading with LEADTOOLS OCR
LEADTOOLS OCR Thunk Server

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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