ComponentOne True DBGrid for WinForms
C1.Win.C1TrueDBGrid.Excel.4.5.2 Assembly / C1.Win.C1TrueDBGrid.Excel Namespace / Extensions Class / SaveExcel Method
C1.Win.C1TrueDBGrid.C1TrueDBGrid instance that will be exported.
Name of the file to save, including the path.
Name of the sheet to add to the Excel workbook.
System.Drawing.Printing.PrinterSettings to use when saving the file.
Indicates whether hidden columns should be included in the export.

In This Topic
    SaveExcel Method
    In This Topic
    Provides export to Microsoft Excel file.
    Syntax
    'Declaration
     
    Public Shared Sub SaveExcel( _
       ByVal grid As C1TrueDBGrid, _
       ByVal fileName As System.String, _
       Optional ByVal sheetName As System.String, _
       Optional ByVal ps As System.Drawing.Printing.PrinterSettings, _
       Optional ByVal includeHiddenColumns As System.Boolean _
    ) 
    public static void SaveExcel( 
       C1TrueDBGrid grid,
       System.string fileName,
       System.string sheetName,
       System.Drawing.Printing.PrinterSettings ps,
       System.bool includeHiddenColumns
    )

    Parameters

    grid
    C1.Win.C1TrueDBGrid.C1TrueDBGrid instance that will be exported.
    fileName
    Name of the file to save, including the path.
    sheetName
    Name of the sheet to add to the Excel workbook.
    ps
    System.Drawing.Printing.PrinterSettings to use when saving the file.
    includeHiddenColumns
    Indicates whether hidden columns should be included in the export.
    See Also