Bitmap to print a TChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Reinhard
Newbie
Newbie
Posts: 10
Joined: Fri Apr 22, 2005 4:00 am

Bitmap to print a TChart

Post by Reinhard » 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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Sep 18, 2006 10:02 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply