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)
public PDFFieldImportError[] ImportData( Stream stream, PDFFormDataFormat dataFormat, bool 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
| Exception | Description |
|---|---|
| O2S.Components.PDFView4NET.PDFException | Thrown when the input stream can not be read. |
| O2S.Components.PDFEngine.PDFObjects.PDFParserException | 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