public void SetData(
byte[] data
)
Public Sub SetData( _
ByVal data() As Byte _
)
public:
void SetData(
array<byte>^ data
)
data
Array of bytes containing the encoded attributes.
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.
SetData is useful to set the loaded attributes data.
using Leadtools.Forms.Common;
using Leadtools.Forms.Recognition;
using Leadtools.Codecs;
/// This method loads the specified master form attributes.
public FormRecognitionAttributes LoadMasterFormAttributes(string attributesFileName)
{
byte[] formData;
formData = File.ReadAllBytes(attributesFileName);
FormRecognitionAttributes attributes = new FormRecognitionAttributes();
attributes.SetData(formData);
return attributes;
}
Imports Leadtools.Forms.Common
Imports Leadtools.Forms.Recognition
Imports Leadtools.Codecs
''' This method loads the specified master form attributes.
Public Function LoadMasterFormAttributes(attributesFileName As String) As FormRecognitionAttributes
Dim formData As Byte()
formData = File.ReadAllBytes(attributesFileName)
Dim attributes As New FormRecognitionAttributes()
attributes.SetData(formData)
Return attributes
End Function
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm EST.
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.