PDF Export with TCharts ver 5.03

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Karen99
Newbie
Newbie
Posts: 6
Joined: Fri Nov 15, 2002 12:00 am

PDF Export with TCharts ver 5.03

Post by Karen99 » Wed Jun 07, 2006 1:23 pm

I am using Delphi 7 and TCharts ver 5.03.

I've got a TQRChart on a quick report. When I export the quick report to PDF, the qrchart on the quick report dissapear.

I tried the following code :
QRChart1.Chart.CopyToClipboardBitmap;
Image.Picture.Bitmap.LoadFromClipboardFormat(cf_BitMap,
ClipBoard.GetAsHandle(cf_Bitmap), 0);

Where the image is a qrimage that I dropped on top of the qrchart. But it still does not diplay correctly.

Thanks
Karen

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Jun 09, 2006 9:35 am

Hi Karen,

I think the TQRChart component is disabled for PDF exportations.

As an alternative approach, try using TQRImage for displaying charts. The
procedure is more less simple:

1) Don't use TQRChart for reports. Instead, use regular TDBChart.
2) To show/print TDBChart, first create a temporary metafile and assign it
to TQRImage. The end result is TDBChart "image", displayed in report.

I think there is an example of this approach available at our FAQ pages.

Post Reply