Spread Windows Forms 13.0 Product Documentation
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IWorkbook Interface / SaveAs Method / SaveAs(String,FileFormat,String,ExportContext) 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.
An GrapeCity.Spreadsheet.IO.OpenXml.ExportContext object indicates the export context.


In This Topic
    SaveAs(String,FileFormat,String,ExportContext) Method
    In This Topic
    Saves this Workbook to the specified file location.
    Syntax
    'Declaration
     
    Overloads Function SaveAs( _
       ByVal filename As String, _
       Optional ByVal fileFormat As FileFormat, _
       Optional ByVal password As String, _
       Optional ByVal context As ExportContext _
    ) As Boolean
    'Usage
     
    Dim instance As IWorkbook
    Dim filename As String
    Dim fileFormat As FileFormat
    Dim password As String
    Dim context As ExportContext
    Dim value As Boolean
     
    value = instance.SaveAs(filename, fileFormat, password, context)

    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.
    context
    An GrapeCity.Spreadsheet.IO.OpenXml.ExportContext object indicates the export context.

    Return Value

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