FormSuite for Invoices v2.1 - Updated
SetData Method




Accusoft.FSInvoices Namespace > FormField Class : SetData Method
Zero-based index of the DocumentPage that contains the new data.
The area of the data (in pixels) that should be loaded from the DocumentPage. Note: This method will retrieve the area of the deskewed DocumentPage which may not be the same area as the original image.
Automatically select any label associated with the new data.

Sets new data for this field.

The SetData method will set the data's value by selecting any text in the specified bounding area on the specified page. Set the autoSelectLabel parameter to true so FSI will attempt to find a matching label for the new data.

Syntax
'Declaration
 
Public Sub SetData( _
   ByVal documentPageIndex As Integer, _
   ByVal area As Rectangle, _
   ByVal autoSelectLabel As Boolean _
) 
'Usage
 
Dim instance As FormField
Dim documentPageIndex As Integer
Dim area As Rectangle
Dim autoSelectLabel As Boolean
 
instance.SetData(documentPageIndex, area, autoSelectLabel)
public void SetData( 
   int documentPageIndex,
   Rectangle area,
   bool autoSelectLabel
)
public: void SetData( 
   int documentPageIndex,
   Rectangle area,
   bool autoSelectLabel
) 
public:
void SetData( 
   int documentPageIndex,
   Rectangle area,
   bool autoSelectLabel
) 

Parameters

documentPageIndex
Zero-based index of the DocumentPage that contains the new data.
area
The area of the data (in pixels) that should be loaded from the DocumentPage. Note: This method will retrieve the area of the deskewed DocumentPage which may not be the same area as the original image.
autoSelectLabel
Automatically select any label associated with the new data.
Exceptions
ExceptionDescription
Thrown when the documentPageIndex argument is out of range.
Thrown when the area argument runs off the specified DocumentPage.
Remarks
The text grabbed from the area will be normalized according to the field type, unless the document was originally processed with normalization turned off for this type of field.
See Also

Reference

FormField Class
FormField Members