Page 1 of 1

export to metafile/printing

Posted: Sat Jan 06, 2007 3:17 pm
by 9345070
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.

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

Posted: Tue Jan 09, 2007 2:04 pm
by 9345070
Thanks. That all was very helpful. The key is to use the CreateMetafile stuff with Rect to get the result I desire.