[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.ISheet.SaveAs

SaveAs Method

SaveAs(Stream, FileFormat, string, ExportOptions)

Saves this IWorksheet to the specified Stream.

Declaration
bool SaveAs(Stream stream, FileFormat fileFormat = FileFormat.OpenXMLWorkbook, string password = null, ExportOptions options = ExportOptions.None)
Function SaveAs(stream As Stream, Optional fileFormat As FileFormat = FileFormat.OpenXMLWorkbook, Optional password As String = Nothing, Optional options As ExportOptions = ExportOptions.None) As Boolean
Parameters
Type Name Description
Stream stream

A Stream object indicates the stream to save to.

FileFormat fileFormat

A FileFormat value indicates the file format when saving the workbook.

string password

A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file.

ExportOptions options

A ExportOptions value that indicates how data is saved. Some options may be unavailable depend on the fileFormat.

Returns
Type Description
bool

true if this workbook is saved successful, false otherwise.

SaveAs(string, FileFormat, string, ExportOptions)

Saves this IWorksheet to the specified file location.

Declaration
bool SaveAs(string filename, FileFormat fileFormat = FileFormat.OpenXMLWorkbook, string password = null, ExportOptions options = ExportOptions.None)
Function SaveAs(filename As String, Optional fileFormat As FileFormat = FileFormat.OpenXMLWorkbook, Optional password As String = Nothing, Optional options As ExportOptions = ExportOptions.None) As Boolean
Parameters
Type Name Description
string filename

A string value indicates the file name to save to.

FileFormat fileFormat

A FileFormat value indicates the file format when saving the workbook.

string password

A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file.

ExportOptions options

A ExportOptions value that indicates how data is saved. Some options may be unavailable depend on the fileFormat.

Returns
Type Description
bool

true if this workbook is saved successful, false otherwise.