LEADTOOLS Forms (Leadtools.Forms.Recognition assembly)

DeleteFormPage Method

Show in webframe
Example 





The Form attribute object.
The page being deleted from the form. The page number is a 1-based index.
Deletes the specified page from the specified Form attribute object.
Syntax
public void DeleteFormPage( 
   FormRecognitionAttributes attributes,
   int pageNumber
)
'Declaration
 
Public Sub DeleteFormPage( _
   ByVal attributes As FormRecognitionAttributes, _
   ByVal pageNumber As Integer _
) 
'Usage
 
Dim instance As FormRecognitionEngine
Dim attributes As FormRecognitionAttributes
Dim pageNumber As Integer
 
instance.DeleteFormPage(attributes, pageNumber)

            

            
public:
void DeleteFormPage( 
   FormRecognitionAttributes^ attributes,
   int pageNumber
) 

Parameters

attributes
The Form attribute object.
pageNumber
The page being deleted from the form. The page number is a 1-based index.
Remarks

The object should be a Form attribute object. To delete a page from a Master Form attribute object, call the DeleteMasterFormPagemethod.

Example
Copy Code  
Imports Leadtools
Imports Leadtools.Barcode
Imports Leadtools.Codecs
Imports Leadtools.Forms
Imports Leadtools.Forms.Ocr
Imports Leadtools.Forms.Processing
Imports Leadtools.Forms.Recognition
Imports Leadtools.Forms.Recognition.Barcode
Imports Leadtools.Forms.Recognition.Ocr

''' This method deletes a page from a form attributes object for recognition.
  Public Sub DeletePageFromForm(ByVal recognitionEngine As FormRecognitionEngine, _
                                ByVal pagenumber As Integer, _
                                ByVal form As FormRecognitionAttributes)
      recognitionEngine.OpenForm(form)
      recognitionEngine.DeleteFormPage(form, pagenumber)
      recognitionEngine.CloseForm(form)
  End Sub
using Leadtools;
using Leadtools.Barcode;
using Leadtools.Codecs;
using Leadtools.Forms;
using Leadtools.Forms.Ocr;
using Leadtools.Forms.Processing;
using Leadtools.Forms.Recognition;
using Leadtools.Forms.Recognition.Barcode;
using Leadtools.Forms.Recognition.Ocr;

/// This method deletes a page from form attributes for recognition.
public void DeletePageFromForm(FormRecognitionEngine recognitionEngine, 
                               int pagenumber, 
                               FormRecognitionAttributes form)
{
   recognitionEngine.OpenForm(form);
   recognitionEngine.DeleteFormPage(form, pagenumber);
   recognitionEngine.CloseForm(form);
}
Requirements

Target Platforms

See Also

Reference

FormRecognitionEngine Class
FormRecognitionEngine Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features