ComponentOne True DBGrid for WinForms
SaveExcel Method

C1.Win.C1TrueDBGrid.Excel.4 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.
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 _
) 
public static void SaveExcel( 
   C1TrueDBGrid grid,
   System.string fileName,
   System.string sheetName,
   System.Drawing.Printing.PrinterSettings ps
)

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.
See Also

Reference

Extensions Class
Extensions Members