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



data
An instance of the IOcrProgressData interface containing the progress callback data.
Monitors progress of OCR operations.

Syntax

Visual Basic (Declaration) 
Public Delegate Sub OcrProgressCallback( _
   ByVal data As IOcrProgressData _
) 
Visual Basic (Usage)Copy Code
Dim instance As New OcrProgressCallback(AddressOf HandlerMethod)
C# 
public delegate void OcrProgressCallback( 
   IOcrProgressData data
)
C++/CLI 
public delegate void OcrProgressCallback( 
   IOcrProgressData^ data
)

Parameters

data
An instance of the IOcrProgressData interface containing the progress callback data.

Example

This example will display a simple "Processing" Windows Forms dialog that can be used to show OCR operation progress as well as allow the user to abort the current operation. You can plug this dialog into your application and call it in response to user-interface commands that correspond to OCR operations.

Remarks

The OCR engine will continuously invoke the callback procedure during the different OCR operations with an instance of IOcrProgressData providing the current processing stage and a percentage indicator value. Use this function to indicate progress of application operations.

The callback can set the IOcrProgressData.Status property at any time to OcrProgressStatus.Abort to abort the OCR process and cancel all pending operations.

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

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