To set the ExportToExcel method, add the following code to the Click event of the Export button:
Me.C1TrueDBGrid1.ExportToExcel("c:\temp\composers.xls")
· C#
this.c1TrueDBGrid1.ExportToExcel(@"c:\temp\composers.xls");
· Delphi
Self.C1TrueDBGrid1.ExportToExcel('c:\temp\composers.xls');
This topic illustrates the following:
Clicking the Export button creates an Excel file in the temp directory.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |