Printing Charts

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Andrew
Newbie
Newbie
Posts: 11
Joined: Mon May 17, 2004 4:00 am
Location: UK

Printing Charts

Post by Andrew » Wed Nov 17, 2004 5:22 pm

I have a 6-page chart and I want to print 2 chart pages on each printed page - one underneath the other. The Help says to use the PrintPartial method and refers you to basic.pas in the examples for more info. However, I can't find this file anywhere. Can someone tell me where to find it or provide a code example for what I want to do please.

Andrew

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Nov 18, 2004 7:05 am

Hi Andrew,

you can use similar code to the following :

Try using TChart.PrintPartial method to print multiple charts. Something
like this:

Code: Select all

Uses ...,Printers;
....
  Printer.BeginDoc;
  Chart1.PrintPartial(Rect(0,0,Printer.PageHeight-1,Printer.PageWidth div
2));

Chart2.PrintPartial(Rect(0,Printer.PageWidth,Printer.PageHeight-1,Printer.PageWidth));
  Printer.EndDoc;

Post Reply