LEADTOOLS Forms (Leadtools.Forms.Recognition assembly)
LEAD Technologies, Inc

GetData Method

Example 





Gets the array of bytes containing the encoded attributes.
Syntax
public byte[] GetData()
'Declaration
 
Public Function GetData() As Byte()
'Usage
 
Dim instance As FormRecognitionAttributes
Dim value() As Byte
 
value = instance.GetData()
public byte[] GetData()
 function Leadtools.Forms.Recognition.FormRecognitionAttributes.GetData()
public:
array<byte>^ GetData(); 
Remarks
Forms attributes that are generated by FormRecognitionEngine.CreateMasterForm for Master Forms or FormRecognitionEngine.CreateForm for Forms will have the form's attributes that are specified in FormRecognitionEngine.ObjectsManagers.

To start modifying the form's attributes you have to open it using OpenMasterForm for Master Forms or OpenForm for Forms, or create it using FormRecognitionEngine.CreateMasterForm for Master Forms or FormRecognitionEngine.CreateForm for Forms.

Forms attributes data will be updated with the changes you made to the form attributes such as addition of a page or deletion of a page once the attributes is closed using either FormRecognitionEngine.CloseMasterForm for Master Form attributes or FormRecognitionEngine.CloseForm for Form attributes.

Once you finish modifying the form's attributes close it to reflect your changes.

GetData is useful to save attributes data specially for Master forms on the disk or database.

Example
 
''' This method saves a master form attributes object to the specified filename.
  Public Sub SaveMasterFormAttributes(ByVal attributes As FormRecognitionAttributes, _
                                      ByVal attributesFileName As String)
      Dim formData As Byte() = attributes.GetData()
      File.WriteAllBytes(attributesFileName, formData)
  End Sub
/// This method saves master form attributes to the specified file name.
public void SaveMasterFormAttributes(FormRecognitionAttributes attributes, string attributesFileName)
{
   byte[] formData = attributes.GetData();
   File.WriteAllBytes(attributesFileName, formData);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FormRecognitionAttributes Class
FormRecognitionAttributes Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 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