To set the ExportToPDF method, add the following code to the Click event of the Export button:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.ExportToPDF("c:\temp\composers.pdf") |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.ExportToPDF(@"c:\temp\composers.pdf"); |
Clicking the Export button creates a PDF file in the temp directory: