[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.Save

Save Method

Save(string)

将工作簿保存到磁盘。

Declaration
void Save(string fileName)
Parameters
Type Name Description
string fileName

文件名。

Save(string, string, SaveOptions)

将数据保存到指定的Excel文件。

Declaration
void Save(string fileName, string password = null, SaveOptions saveOptions = null)
Parameters
Type Name Description
string fileName

Excel文件。

string password

文件的密码。

SaveOptions saveOptions

保存的选项。

Save(Stream)

将工作簿保存到流中。

Declaration
void Save(Stream fileStream)
Parameters
Type Name Description
Stream fileStream

文件流。

Save(Stream, string, SaveOptions)

将数据保存到指定的 Excel 文件流。

Declaration
void Save(Stream fileStream, string password = null, SaveOptions saveOptions = null)
Parameters
Type Name Description
Stream fileStream

文件流。

string password

文件的密码。

SaveOptions saveOptions

保存的选项。

Save(string, SaveFileFormat)

保存指定格式的文件。

Declaration
void Save(string fileName, SaveFileFormat fileFormat)
Parameters
Type Name Description
string fileName

指定的文件。

SaveFileFormat fileFormat

文件的格式。

Save(Stream, SaveFileFormat)

保存指定的格式文件流。

Declaration
void Save(Stream fileStream, SaveFileFormat fileFormat)
Parameters
Type Name Description
Stream fileStream

指定的文件流。

SaveFileFormat fileFormat

文件流的格式。

Save(string, SaveOptionsBase)

使用指定的选项将工作簿保存到文件。

Declaration
void Save(string fileName, SaveOptionsBase options)
Parameters
Type Name Description
string fileName

指定的文件。

SaveOptionsBase options

保存文件的选项。可能的类型:

Save(Stream, SaveOptionsBase)

使用指定的选项将工作簿保存到流中。

Declaration
void Save(Stream fileStream, SaveOptionsBase options)
Parameters
Type Name Description
Stream fileStream

指定的文件流。

SaveOptionsBase options

保存文件流的选项。可能的类型: