Share via


View3.ExportAsFixedFormat Method (String, String, Object)

Exports the view to a file of the specified format, and supports initializing a COM add-in for exporting to a fixed-format file.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Sub ExportAsFixedFormat ( _
    bstrURL As String, _
    bstrFormat As String, _
    varExporter As Object _
)
'Usage
Dim instance As View3
Dim bstrURL As String
Dim bstrFormat As String
Dim varExporter As Object

instance.ExportAsFixedFormat(bstrURL, _
    bstrFormat, varExporter)
void ExportAsFixedFormat(
    string bstrURL,
    string bstrFormat,
    Object varExporter
)

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)

  • varExporter
    Type: System.Object

    An IUnknown interface pointer that supports the IMsoDocExporter interface for the active document. Used for initializing a COM add-in for exporting to a fixed-format file.

Implements

View2.ExportAsFixedFormat(String, String, Object)

Remarks

The varExporter parameter is used to provide an IUnknown interface pointer to the active document. This is used to initialize a COM add-in for exporting to a fixed-format file. For more information, see the article "Extending the Office Fixed-Format Export Feature" on Microsoft Developer Network (MSDN).

This member can be accessed only by forms opened from a form template that has been configured to run with full trust using the Security and Trust category of the Form Options dialog box. This member requires full trust for the immediate caller and cannot be used by partially trusted code. For more information, see "Using Libraries from Partially Trusted Code" on MSDN.

See Also

Reference

View3 Interface

View3 Members

ExportAsFixedFormat Overload

Microsoft.Office.Interop.InfoPath Namespace