LEADTOOLS Forms (Leadtools.Forms.Recognition assembly)

CreateForm Method

Show in webframe
Example 





A structure which specifies the form options.
Creates a new form, with the specified options, for use in recognition It returns a FormRecognitionEngine object that you can use for creating any Form.
Syntax
'Declaration
 
Public Function CreateForm( _
   ByVal formOptions As FormRecognitionOptions _
) As FormRecognitionAttributes
'Usage
 
Dim instance As FormRecognitionEngine
Dim formOptions As FormRecognitionOptions
Dim value As FormRecognitionAttributes
 
value = instance.CreateForm(formOptions)

            

            

Parameters

formOptions
A structure which specifies the form options.
Remarks
This methods is used to create form attributes to the Forms (filled form), the attributes that are generated using this method cannot be used as a Master Form attributes.
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 creates a form attributes object for recognition.
Public Function CreateForm(ByVal recognitionEngine As FormRecognitionEngine) As FormRecognitionAttributes
   Dim attributes As FormRecognitionAttributes = recognitionEngine.CreateForm(Nothing)
   recognitionEngine.CloseForm(attributes)
   Return attributes
End Function
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 creates a form attributes for recognition.
public FormRecognitionAttributes CreateForm(FormRecognitionEngine recognitionEngine)
{
   FormRecognitionAttributes attributes = recognitionEngine.CreateForm(null);
   recognitionEngine.CloseForm(attributes);
   return attributes;
}
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