Workbook.Save

Save(string, SaveFormat)

Saves the workbook to the disk.

public void Save(string fileName, SaveFormat saveFormat)
ParameterTypeDescription
fileNameStringThe file name.
saveFormatSaveFormatThe save format type.

See Also


Save(string)

Save the workbook to the disk.

public void Save(string fileName)
ParameterTypeDescription
fileNameString

See Also


Save(string, SaveOptions)

Saves the workbook to the disk.

public void Save(string fileName, SaveOptions saveOptions)
ParameterTypeDescription
fileNameStringThe file name.
saveOptionsSaveOptionsThe save options.

See Also


Save(Stream, SaveFormat)

Saves the workbook to the stream.

public void Save(Stream stream, SaveFormat saveFormat)
ParameterTypeDescription
streamStreamThe file stream.
saveFormatSaveFormatThe save file format type.

See Also


Save(Stream, SaveOptions)

Saves the workbook to the stream.

public void Save(Stream stream, SaveOptions saveOptions)
ParameterTypeDescription
streamStreamThe file stream.
saveOptionsSaveOptionsThe save options.

See Also


Save(HttpResponse, string, ContentDisposition, SaveOptions)

Creates the result spreadsheet and transfer it to the client then open it in the browser or MS Workbook.

public void Save(HttpResponse response, string fileName, ContentDisposition contentDisposition, 
    SaveOptions saveOptions)
ParameterTypeDescription
responseHttpResponseResponse object to return the spreadsheet to client.
fileNameStringThe name of created file.
contentDispositionContentDispositionThe content disposition type.
saveOptionsSaveOptionsThe save options.

See Also


Save(HttpResponse, string, ContentDisposition, SaveOptions, bool)

Creates the result spreadsheet and transfer it to the client then open it in the browser or MS Workbook.

public void Save(HttpResponse response, string fileName, ContentDisposition contentDisposition, 
    SaveOptions saveOptions, bool enableHttpCompression)
ParameterTypeDescription
responseHttpResponseResponse object to return the spreadsheet to client.
fileNameStringThe name of created file.
contentDispositionContentDispositionThe content disposition type.
saveOptionsSaveOptionsThe save options.
enableHttpCompressionBooleanwhether http compression is to be used

See Also