[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.Save

Save Method

Save(string)

Saves the workbook to the disk.

Declaration
void Save(string fileName)
Sub Save(fileName As String)
Parameters
Type Name Description
string fileName

The file name.

Save(string, string, SaveOptions)

Saves data to the specified excel file.

Declaration
void Save(string fileName, string password = null, SaveOptions saveOptions = null)
Sub Save(fileName As String, Optional password As String = Nothing, Optional saveOptions As SaveOptions = Nothing)
Parameters
Type Name Description
string fileName

The excel file.

string password

The password of the file.

SaveOptions saveOptions

Options for saving.

Save(Stream)

Saves the workbook to the stream.

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

The file stream.

Save(Stream, string, SaveOptions)

Saves data to the specified excel file stream.

Declaration
void Save(Stream fileStream, string password = null, SaveOptions saveOptions = null)
Sub Save(fileStream As Stream, Optional password As String = Nothing, Optional saveOptions As SaveOptions = Nothing)
Parameters
Type Name Description
Stream fileStream

The file stream.

string password

The password of the file.

SaveOptions saveOptions

Options for saving.

Save(string, SaveFileFormat)

Saves the specified format file.

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

The specified file.

SaveFileFormat fileFormat

The format of the file.

Save(Stream, SaveFileFormat)

Saves the specified format file stream.

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

The specified file stream.

SaveFileFormat fileFormat

The format of the file stream.

Save(string, SaveOptionsBase)

Saves workbook to file with specified options.

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

The specified file.

SaveOptionsBase options

The options of saving the file. Possible types:

Save(Stream, SaveOptionsBase)

Saves workbook to stream with specified options.

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

The specified file stream.

SaveOptionsBase options

The options of saving the file stream. Possible types: