Spread ASP.NET 16
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FpSpread Class / SaveExcel Method / SaveExcel(Stream,ExcelSaveFlags,ExcelWarningList,String) Method
Stream to save the file to as an Excel Compound Storage file
Which parts of the spreadsheet to save
List of warning messages that occur during this operation
Password of file
Example


In This Topic
    SaveExcel(Stream,ExcelSaveFlags,ExcelWarningList,String) Method
    In This Topic
    Saves the contents of the Spread component to the specified Excel file in a stream, keeping track of warnings.
    Syntax
    'Declaration
     
    Public Overloads Function SaveExcel( _
       ByVal stream As Stream, _
       ByVal saveFlags As ExcelSaveFlags, _
       ByVal warningList As ExcelWarningList, _
       ByVal password As String _
    ) As Boolean
    'Usage
     
    Dim instance As FpSpread
    Dim stream As Stream
    Dim saveFlags As ExcelSaveFlags
    Dim warningList As ExcelWarningList
    Dim password As String
    Dim value As Boolean
     
    value = instance.SaveExcel(stream, saveFlags, warningList, password)
    public bool SaveExcel( 
       Stream stream,
       ExcelSaveFlags saveFlags,
       ExcelWarningList warningList,
       string password
    )

    Parameters

    stream
    Stream to save the file to as an Excel Compound Storage file
    saveFlags
    Which parts of the spreadsheet to save
    warningList
    List of warning messages that occur during this operation
    password
    Password of file
    Example

    This example uses the SaveExcel method.

    See Also