[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IWorkbook.SaveAs

SaveAs Method

SaveAs(Stream, FileFormat, string, ExportContext)

Saves this IWorkbook to the specified Stream.

Declaration
bool SaveAs(Stream stream, FileFormat fileFormat = FileFormat.OpenXMLWorkbook, string password = null, ExportContext context = null)
Function SaveAs(stream As Stream, Optional fileFormat As FileFormat = FileFormat.OpenXMLWorkbook, Optional password As String = Nothing, Optional context As ExportContext = Nothing) 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.

ExportContext context

An ExportContext object indicates the export context.

Returns
Type Description
bool

true if this workbook is saved successful, false otherwise.

SaveAs(string, FileFormat, string, ExportContext)

Saves this IWorkbook to the specified file location.

Declaration
bool SaveAs(string filename, FileFormat fileFormat = FileFormat.OpenXMLWorkbook, string password = null, ExportContext context = null)
Function SaveAs(filename As String, Optional fileFormat As FileFormat = FileFormat.OpenXMLWorkbook, Optional password As String = Nothing, Optional context As ExportContext = Nothing) 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.

ExportContext context

An ExportContext object indicates the export context.

Returns
Type Description
bool

true if this workbook is saved successful, false otherwise.