View2.ExportAsFixedFormat Method
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
'Usage
Parameters
- bstrURL
The directory location that the exported view file will be written to.
bstrFormat
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
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 (2007) Fixed-Format Export Feature" on Microsoft Developer Network (MSDN).
Note
You can save as a PDF or XPS file from a 2007 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.
See Also
Reference
View2 Interface
View2 Members
Microsoft.Office.Interop.InfoPath Namespace