Spread WPF 18
GrapeCity.Spreadsheet Namespace / ISheet Interface / SaveAs Method / SaveAs(Stream,FileFormat,String,ExportOptions) Method
A System.IO.Stream object indicates the stream to save to.
A GrapeCity.Spreadsheet.IO.FileFormat value indicates the file format when saving the workbook.
A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file.
A GrapeCity.Spreadsheet.IO.OpenXml.ExportOptions value that indicates how data is saved. Some options may be unavailable depend on the fileFormat.


In This Topic
    SaveAs(Stream,FileFormat,String,ExportOptions) Method
    In This Topic
    Saves this IWorksheet to the specified System.IO.Stream.
    Syntax
    'Declaration
     
    Overloads Function SaveAs( _
       ByVal stream As Stream, _
       Optional ByVal fileFormat As FileFormat, _
       Optional ByVal password As String, _
       Optional ByVal options As ExportOptions _
    ) As Boolean
    'Usage
     
    Dim instance As ISheet
    Dim stream As Stream
    Dim fileFormat As FileFormat
    Dim password As String
    Dim options As ExportOptions
    Dim value As Boolean
     
    value = instance.SaveAs(stream, fileFormat, password, options)
    bool SaveAs( 
       Stream stream,
       FileFormat fileFormat,
       string password,
       ExportOptions options
    )

    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.
    options
    A GrapeCity.Spreadsheet.IO.OpenXml.ExportOptions value that indicates how data is saved. Some options may be unavailable depend on the fileFormat.

    Return Value

    true if this workbook is saved successful, false otherwise.
    See Also