Page 1 of 1

PDF Export with TCharts ver 5.03

Posted: Wed Jun 07, 2006 1:23 pm
by 5886636
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

Posted: Fri Jun 09, 2006 9:35 am
by Pep
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.