Page 1 of 1

Printing TeeChart

Posted: Sun Dec 03, 2006 12:15 pm
by 9347662
I have seen an example on this and lots on the web but cant seem to get printing working. I want to make a button in Delphi 2005 where I can display it like in TeeChart edit mode in the printing tab. How do I do that? Please help.

Posted: Mon Dec 04, 2006 7:07 am
by Marjan
Hi.

If you want to show the tChart print preview form, then you can do this by:
I)
a) dropping a TChartPreviewer component on the form
b) connecting the TChartPreviewer component with chart you want to preview. This is done by setting TChartPreviewer.Chart property:

Code: Select all

chartPreviewer1.Chart := Chart1;
c) Invoking the preview form with the

Code: Select all

chartPreviewer1.Execute;
call.

OR by

II)
a) adding TeePrevi unit to the Uses section
b) invoking the preview form with the

Code: Select all

Uses ..., TeePrevi;
TeePreview(Form1,Chart1);