'Declaration Overloads Function SaveAs( _ ByVal stream As Stream, _ Optional ByVal fileFormat As FileFormat, _ Optional ByVal password As String, _ Optional ByVal context As ExportContext _ ) As Boolean
'Usage Dim instance As IWorkbook Dim stream As Stream Dim fileFormat As FileFormat Dim password As String Dim context As ExportContext Dim value As Boolean value = instance.SaveAs(stream, fileFormat, password, context)
bool SaveAs( Stream stream, FileFormat fileFormat, string password, ExportContext context )
Parameters
- stream
- A System.IO.Stream object indicates the stream to save to.
- fileFormat
- A GrapeCity.Spreadsheet.IO.FileFormat value indicates the file format when saving the workbook.
- password
- A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file.
- context
- An GrapeCity.Spreadsheet.IO.OpenXml.ExportContext object indicates the export context.
Return Value
true
if this workbook is saved successful, false
otherwise.