←Select platform

PageProgressCallbackData Class

Summary
Data for the PageProgressCallback delegate.

Syntax
C#
C++/CLI
Java
Python
public class PageProgressCallbackData 
public class PageProgressCallbackData 
public ref class PageProgressCallbackData  
class PageProgressCallbackData: 
Remarks

A PageProgressCallbackData object is passed to the PageProgressCallback delegate every time the operation or the percent completion of the operation is changed. The members of PageProgressCallbackData display the percent completion of the Form's page process.

Example
C#
using Leadtools.Forms.Common; 
using Leadtools.Forms.Recognition; 
using Leadtools.Ocr; 
using Leadtools.Forms.Processing; 
using Leadtools.Forms.Recognition.Barcode; 
using Leadtools.Forms.Recognition.Ocr; 
 
 
// Text writer to save the log to  
public FormRecognitionResult ProgressCallbackExample(FormRecognitionEngine recognitionEngine, 
                                                     FormRecognitionAttributes master, 
                                                     FormRecognitionAttributes form) 
{ 
   return recognitionEngine.CompareForm(master, form, MyFormProgressCallback, MyPageProgressCallback); 
} 
 
private void MyPageProgressCallback(PageProgressCallbackData data) 
{ 
   if (data.Percentage == 0) 
      Console.WriteLine("--------------------------"); 
 
   Console.WriteLine("Page progress:{0}%", data.Percentage.ToString("000")); 
} 
 
private bool MyFormProgressCallback(int currentPage, int totalPages, int percentage) 
{ 
   if (percentage == 0) 
      Console.WriteLine("--------------------------"); 
 
   Console.WriteLine("Page:{0}/{1} {2}%", 
      currentPage.ToString("00"), 
      totalPages.ToString("00"), 
      percentage.ToString("000")); 
 
   return false; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.