Leadtools.Forms.Auto Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AddMasterForm(FormRecognitionAttributes,FormPages,RasterImage) Method
See Also 
Leadtools.Forms.Auto Namespace > DiskMasterFormsCategory Class > AddMasterForm Method : AddMasterForm(FormRecognitionAttributes,FormPages,RasterImage) Method



attributes
Master Form recognition attributes.
fields
Master Form processing fields.
form
Master Form image.
attributes
Master Form recognition attributes.
fields
Master Form processing fields.
form
Master Form image.
Adds a new Master Form to this category on the local disk and in DiskMasterFormsCategory.MasterForms.

Syntax

Visual Basic (Declaration) 
Overloads Public Overridable Function AddMasterForm( _
   ByVal attributes As FormRecognitionAttributes, _
   ByVal fields As FormPages, _
   ByVal form As RasterImage _
) As IMasterForm
Visual Basic (Usage)Copy Code
Dim instance As DiskMasterFormsCategory
Dim attributes As FormRecognitionAttributes
Dim fields As FormPages
Dim form As RasterImage
Dim value As IMasterForm
 
value = instance.AddMasterForm(attributes, fields, form)
C# 
public virtual IMasterForm AddMasterForm( 
   FormRecognitionAttributes attributes,
   FormPages fields,
   RasterImage form
)
C++/CLI 
public:
virtual IMasterForm^ AddMasterForm( 
   FormRecognitionAttributes attributes,
   FormPages fields,
   RasterImage form
) 

Parameters

attributes
Master Form recognition attributes.
fields
Master Form processing fields.
form
Master Form image.

Return Value

Returns the created IMasterForm object.

Example

For an example, refer to GenerateMasterFormAttributes.

Remarks

The source code of this interface implementation class is available at <Install Directory>\Examples\DotNet\CS\AutoMasterFormsRepository.

attributes must be provided, if it is null the method will throw an exception.

The added Master Form will have the Name of the attributes.

The Master Form files will be stored in Path.

The Master Form attributes file will have the name of the Master Form DiskMasterForm.Name with ".bin" extension. The Master Form fields file will have the name of the Master Form DiskMasterForm.Name with ".xml" extension. The Master Form form file will have the name of the Master Form DiskMasterForm.Name with ".tif" extension.

form is stored as a 1-bit black and white tif image.

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