Edit

Share via


View3.ExportAsFixedFormat(String, String, Object) Method

Definition

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

public:
 void ExportAsFixedFormat(System::String ^ bstrURL, System::String ^ bstrFormat, System::Object ^ varExporter);
public void ExportAsFixedFormat (string bstrURL, string bstrFormat, object varExporter);
abstract member ExportAsFixedFormat : string * string * obj -> unit
Public Sub ExportAsFixedFormat (bstrURL As String, bstrFormat As String, varExporter As Object)

Parameters

bstrURL
String

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

bstrFormat
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
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

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.

Applies to