Printing TeeChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
myghetto
Newbie
Newbie
Posts: 27
Joined: Thu Oct 05, 2006 12:00 am

Printing TeeChart

Post by myghetto » Sun Dec 03, 2006 12:15 pm

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.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Mon Dec 04, 2006 7:07 am

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);
Marjan Slatinek,
http://www.steema.com

Post Reply