PDFView4NET WinForms Edition


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.
ImportData(String,PDFFormDataFormat,Boolean) Method
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 10, Windows 11, Windows Server 2022, Windows Server 2025

See Also