export to metafile/printing

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TSool
Newbie
Newbie
Posts: 10
Joined: Tue Jan 24, 2006 12:00 am

export to metafile/printing

Post by TSool » Sat Jan 06, 2007 3:17 pm

Hi guys,

my requirements are that I deliver a chart that takes up a certain space in mm e.g. when inserting it in Word or when saving it as WMF. Yes, I know WMF I can drag as I want, it is vector-oriented. However, my problem is that the axes etc. are supposed to be drawn as if the chart would have been drawn on that size with those proportions.

How would I e.g. print a chart that takes up 3/4 of a page that is in the printer and add a custom header gfx? I know the approach to overwrite the "AfterDraw" event of the PreviewPanel from the samples, but I have a chart with series on screen already and want to print it.

Thanks in advance.

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 Jan 08, 2007 9:06 am

Hi TSool,

Could you please the forums messages below about similar issues? If they don't help don't hesitate to let us know.

http://www.teechart.net/support/viewtopic.php?t=5200
http://www.teechart.net/support/viewtopic.php?t=5126
http://www.teechart.net/support/viewtopic.php?t=5279
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

TSool
Newbie
Newbie
Posts: 10
Joined: Tue Jan 24, 2006 12:00 am

Post by TSool » Tue Jan 09, 2007 2:04 pm

Thanks. That all was very helpful. The key is to use the CreateMetafile stuff with Rect to get the result I desire.

Post Reply