Exports the grid to a XLS file.
[Visual Basic]
Overloads Public Sub ExportToExcel( _
ByVal filename As String, _
ByVal onePagePerSheet As Boolean _
)
[C#]
public void ExportToExcel(
string filename,
bool onePagePerSheet
);
[Delphi]
public procedure ExportToExcel(
filename: String;
onePagePerSheet: Boolean
); overload;
Example
The following code exports the grid to Excel with one page per sheet:
Me.C1TrueDBGrid1.ExportToExcel("c:\temp\composers.xls", True)
· C#
this.c1TrueDBGrid1.ExportToExcel(@"c:\temp\composers.xls", true);
· Delphi
Self.C1TrueDBGrid1.ExportToExcel('c:\temp\composers.xls', True);
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace | C1TrueDBGrid.ExportToExcel Overload List
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |