ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Exporting to PDF

To set the ExportToPDF method, add the following code to the Click event of the Export button:

·      Visual Basic

Me.C1TrueDBGrid1.ExportToPDF("c:\temp\composers.pdf")

·      C#

this.c1TrueDBGrid1.ExportToPDF(@"c:\temp\composers.pdf");

·      Delphi

Self.C1TrueDBGrid1.ExportToPDF('c:\temp\composers.pdf');

This topic illustrates the following:

Clicking the Export button creates a PDF file in the temp directory.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.