PDFView4NET WinForms Edition


O2S.Components.PDFView4NET.Forms Namespace > PDFForm Class > ImportData Method : ImportData(Stream,PDFFormDataFormat,Boolean) Method
The stream from which to import form data.
The format of input stream.
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(Stream,PDFFormDataFormat,Boolean) Method
Imports form data from an external file.
Syntax
'Declaration
 
Public Overloads Function ImportData( _
   ByVal stream As Stream, _
   ByVal dataFormat As PDFFormDataFormat, _
   ByVal continueImportOnError As Boolean _
) As PDFFieldImportError()
'Usage
 
Dim instance As PDFForm
Dim stream As Stream
Dim dataFormat As PDFFormDataFormat
Dim continueImportOnError As Boolean
Dim value() As PDFFieldImportError
 
value = instance.ImportData(stream, dataFormat, continueImportOnError)

Parameters

stream
The stream from which to import form data.
dataFormat
The format of input stream.
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 stream can not be read.
Thrown when the input stream 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