編輯

共用方式為


_Chart.ExportAsFixedFormat Method

Definition

Exports to a file of the specified format.

public void ExportAsFixedFormat (Microsoft.Office.Interop.Excel.XlFixedFormatType Type, object Filename, object Quality, object IncludeDocProperties, object IgnorePrintAreas, object From, object To, object OpenAfterPublish, object FixedFormatExtClassPtr);
Public Sub ExportAsFixedFormat (Type As XlFixedFormatType, Optional Filename As Object, Optional Quality As Object, Optional IncludeDocProperties As Object, Optional IgnorePrintAreas As Object, Optional From As Object, Optional To As Object, Optional OpenAfterPublish As Object, Optional FixedFormatExtClassPtr As Object)

Parameters

Type
XlFixedFormatType

The type of file format to export to.

Filename
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
Object

Optional XlFixedFormatQuality. Specifies the quality of the published file.

IncludeDocProperties
Object

True to include the document properties; otherwise False.

IgnorePrintAreas
Object

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

From
Object

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

To
Object

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

OpenAfterPublish
Object

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

FixedFormatExtClassPtr
Object

Pointer to the FixedFormatExt class.

Remarks

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.

Applies to