Share via


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.String

    The directory location that the exported view file will be written to.

  • bstrFormat
    Type: System.String

    The 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

View2.Export(String, String)

Remarks

If used in a form that is not fully trusted, the Export method will return a "permission denied" error.

See Also

Reference

View3 Interface

View3 Members

Export Overload

Microsoft.Office.Interop.InfoPath Namespace