To set the ExportTo method, add the following code to the Click event of the Export button:
Me.C1TrueDBGrid1.ExportTo()
· C#
this.c1TrueDBGrid1.ExportTo();
· Delphi
Self.C1TrueDBGrid1.ExportTo;
This topic illustrates the following:
Clicking the Export button opens the TrueDBGrid Print/Export Options dialog.
· In the Action drop-down list, select the file type, including metafiles and image files.
· Click the ellipsis button next to the File name box to open the Export To dialog. Browse to a location to save the file and enter the file name in the File name box. Click OK to close the Export To dialog.
· Under Page Headers and Footers, add Header text and Footer text.
· Click OK to export the file.
The final output will look similar to the following image.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |