Bitmap to print a TChart
Posted: Wed Sep 13, 2006 7:27 am
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
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