Range.ExportAsFixedFormat method

Office 2013 and later

Exports to a file of the specified format.

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

void ExportAsFixedFormat(
	XlFixedFormatType Type,
	Object Filename,
	Object Quality,
	Object IncludeDocProperties,
	Object IgnorePrintAreas,
	Object From,
	Object To,
	Object OpenAfterPublish,
	Object FixedFormatExtClassPtr
)

Parameters

Type
Type: Microsoft.Office.Interop.Excel.XlFixedFormatType

Required XlFixedFormatType The type of file format to export to.

Filename
Type: System.Object

Optional Object The file name of the file to be saved. You can include a full path, or short_Excel2007 saves the file in the current folder.

Quality
Type: System.Object

Optional Object Typically formatted as a XlFixedFormatQuality. Specifies the quality of the published file.

IncludeDocProperties
Type: System.Object

Optional Object set to True to include the document properties; otherwise False.

IgnorePrintAreas
Type: System.Object

Optional Object set to True to ignore any print areas set when publishing; otherwise False.

From
Type: System.Object

Optional Object The number of the page at which to start publishing. If this argument is omitted, publishing starts at the beginning.

To
Type: System.Object

Optional Object The number of the last page to publish. If this argument is omitted, publishing ends with the last page.

OpenAfterPublish
Type: System.Object

Optional Object set to True to display the file in the viewer after it is published; otherwise False.

FixedFormatExtClassPtr
Type: System.Object

Optional Object Pointer to the FixedFormatExt class.

This method also supports initializing an add-in to export a file to a fixed-format file. For example, Excel will perform file format conversion if the converters are present. The conversion is usually initiated by the user.

Show: