View3.Export method (String, String)
Exports the view to a file of the specified format.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Sub Export ( _
bstrURL As String, _
bstrFormat As String _
)
'Usage
Dim instance As View3
Dim bstrURL As String
Dim bstrFormat As String
instance.Export(bstrURL, bstrFormat)
void Export(
string bstrURL,
string bstrFormat
)
Parameters
bstrURL
Type: System.StringThe directory location that the exported view file will be written to.
bstrFormat
Type: System.StringThe type of file format to export to. The supported values are:
"MHT" - Web Archive, single file format (.mht)
"PDF" - Portable Document Format file (.pdf)
"XPS" - XPS Document (.xps)
Implements
Remarks
If used in a form that is not fully trusted, the Export method will return a "permission denied" error.