Page 1 of 1

Bitmap to print a TChart

Posted: Wed Sep 13, 2006 7:27 am
by 9236719
Hello,

in Delphi 5 (TeeChart Version 5.02) I was able to print a chart
by making a bitmap first and then printing it:

Chart.Color:=clWhite;
Chart.BevelOuter:=bvNone;
R:=Chart.GetRectAngle;
MyBmp:=Chart.TeeCreateBitmap(Chart.Color,R);
PrintBitmap(MyBmp,x, y,w,h);

with PrintBitmap as:

...set aRect in Pixels...
Printer.Canvas.StretchDraw(aRect,aBitMap);

After migration to Delphi 2006 VCL.NET and TeeChart VCL 7.07
this printing method does not work.
(But it is still working for other bitmaps)

What is the reason?

Thanks and best regards,

Reinhard

Posted: Mon Sep 18, 2006 10:02 am
by narcis
Hi Reinhard,

Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.