Modifica

Condividi tramite


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

Remarks

The pUnkExporter 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)

Note: You can save as a PDF or XPS file from a Microsoft Office system program only after you install an add-in. For more information, search for "Enable support for other file formats, such as PDF and XPS" on Office Online.

Applies to