Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Worksheet Class / SaveAs Method / SaveAs(String,FileFormat,String,ExportOptions) Method
A string value indicates the file name 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(String,FileFormat,String,ExportOptions) Method
    In This Topic
    Saves this IWorksheet to the specified file location.
    Syntax
    'Declaration
     
    
    Public Overloads Function SaveAs( _
       ByVal filename As String, _
       ByVal fileFormat As FileFormat, _
       ByVal password As String, _
       Optional ByVal options As ExportOptions _
    ) As Boolean
    'Usage
     
    
    Dim instance As Worksheet
    Dim filename As String
    Dim fileFormat As FileFormat
    Dim password As String
    Dim options As ExportOptions
    Dim value As Boolean
     
    value = instance.SaveAs(filename, fileFormat, password, options)

    Parameters

    filename
    A string value indicates the file name 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