Printing with Custom Canvas Objects

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

Printing with Custom Canvas Objects

Post by Gerard » Wed Oct 17, 2007 5:16 am

Using TeeChart 6.1 with BCB6, I have a graph that I enhance by drawing additional information directly to the canvas. (Just simple stuff... boxes, labels etc)

My only problem is that if I try to call the TeeChart's Print() method it only prints the graph - none of my custom objects. Can someone please suggest how I might go about making TeeChart print everything on the canvas?

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

Post by Narcís » Wed Oct 17, 2007 8:56 am

Hi Gerard,

You could exporting the chart to a MetaFile and use StretchDraw as shown in the example Pep posted here.

Hope this helps!
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

Gerard
Newbie
Newbie
Posts: 26
Joined: Fri Nov 15, 2002 12:00 am
Location: Australia
Contact:

Post by Gerard » Thu Oct 18, 2007 3:33 am

Ah excellent, thank you! That helps a lot.

Post Reply