FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / Extensions Class / SaveExcel Method / SaveExcel(C1FlexGridBase,Stream,String,FileFlags,PrinterSettings) Method
C1FlexGridBase instance that will be saved.
The System.IO.Stream to write.
Name of the sheet to add to the Excel workbook.
Options to use when saving the file.
System.Drawing.Printing.PrinterSettings to use when saving the file.

In This Topic
    SaveExcel(C1FlexGridBase,Stream,String,FileFlags,PrinterSettings) Method
    In This Topic
    Saves the grid contents to a stream.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub SaveExcel( _
       ByVal grid As C1FlexGridBase, _
       ByVal stream As Stream, _
       ByVal sheetName As String, _
       ByVal flags As FileFlags, _
       Optional ByVal ps As PrinterSettings _
    ) 

    Parameters

    grid
    C1FlexGridBase instance that will be saved.
    stream
    The System.IO.Stream to write.
    sheetName
    Name of the sheet to add to the Excel workbook.
    flags
    Options to use when saving the file.
    ps
    System.Drawing.Printing.PrinterSettings to use when saving the file.
    See Also