PDFView4NET WPF Edition
ImportData(String,PDFFormDataFormat,Boolean) Method




O2S.Components.PDFView4NET.Forms Namespace > PDFForm Class > ImportData Method : ImportData(String,PDFFormDataFormat,Boolean) Method
The file from which to import form data.
The format of input file.
False if the import should stop on the first field that generates an error, or true if the import should ignore the error and continue with the next field.
Imports form data from an external file.
Syntax
'Declaration
 
Public Overloads Function ImportData( _
   ByVal fileName As String, _
   ByVal dataFormat As PDFFormDataFormat, _
   ByVal continueImportOnError As Boolean _
) As PDFFieldImportError()
'Usage
 
Dim instance As PDFForm
Dim fileName As String
Dim dataFormat As PDFFormDataFormat
Dim continueImportOnError As Boolean
Dim value() As PDFFieldImportError
 
value = instance.ImportData(fileName, dataFormat, continueImportOnError)

Parameters

fileName
The file from which to import form data.
dataFormat
The format of input file.
continueImportOnError
False if the import should stop on the first field that generates an error, or true if the import should ignore the error and continue with the next field.

Return Value

An array with the errors occured during the import.
Exceptions
ExceptionDescription
thrown when the input file can not be open or read.
thrown when the input file can not be parsed.
Remarks
If no errors occured during the import, the returned array is null (Nothing in VB.NET).
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

PDFForm Class
PDFForm Members
Overload List