Leadtools.Forms.Recognition Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
CreateMasterForm Method
See Also  Example
Leadtools.Forms.Recognition Namespace > FormRecognitionEngine Class : CreateMasterForm Method



formName
The Master Form name.
formGuid
The Master Form ID.
formOptions
Specifies the options for the Master Form.
formName
The Master Form name.
formGuid
The Master Form ID.
formOptions
Specifies the options for the Master Form.
Creates a new Master Form attributes object with the specified options. It returns a FormRecognitionEngine object that you can use for creating a Master Form.

Syntax

Visual Basic (Declaration) 
Public Function CreateMasterForm( _
   ByVal formName As String, _
   ByVal formGuid As Guid, _
   ByVal formOptions As FormRecognitionOptions _
) As FormRecognitionAttributes
Visual Basic (Usage)Copy Code
Dim instance As FormRecognitionEngine
Dim formName As String
Dim formGuid As Guid
Dim formOptions As FormRecognitionOptions
Dim value As FormRecognitionAttributes
 
value = instance.CreateMasterForm(formName, formGuid, formOptions)
C# 
public FormRecognitionAttributes CreateMasterForm( 
   string formName,
   Guid formGuid,
   FormRecognitionOptions formOptions
)
C++/CLI 
public:
FormRecognitionAttributes^ CreateMasterForm( 
   String^ formName,
   Guid formGuid,
   FormRecognitionOptions^ formOptions
) 

Parameters

formName
The Master Form name.
formGuid
The Master Form ID.
formOptions
Specifies the options for the Master Form.

Example

For a complete example on using the forms recognition and processing, refer to the FormRecognitionEngine example.

This example creates a Master Form.

Visual BasicCopy Code
''' This method creates a Master Form recognition attributes.
Public Function CreateMasterForm(ByVal recognitionEngine As FormRecognitionEngine, ByVal name As String) As FormRecognitionAttributes
   Dim attributes As FormRecognitionAttributes = recognitionEngine.CreateMasterForm(name, Guid.Empty, Nothing)
   recognitionEngine.CloseMasterForm(attributes)
   Return attributes
End Function
C#Copy Code
/// This method creates a Master Form recognition attributes. 
public FormRecognitionAttributes CreateMasterForm(FormRecognitionEngine recognitionEngine, string name) 

   FormRecognitionAttributes attributes = recognitionEngine.CreateMasterForm(name, Guid.Empty, null); 
   recognitionEngine.CloseMasterForm(attributes); 
   return attributes; 
}

Remarks

This methods is used to create form attributes to the Master Forms (unfilled form), the attributes that are generated using this method cannot be used as a Form attributes.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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