Hi I am using Rad Studio 2007 with Version 8.08 of TeeChart Pro. Is it possible to set the Printer Object's title (e.g. Printer()->Title = "My Title") for the Chart that is about to be printed via Chart1->Print()?
Thanks
Bernard
how to set the Printer Title property
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: how to set the Printer Title property
Hi Bernard,
You can do that using PrintPartial, which accesses the Printer object, as shown in tutorial 14, for example:
Tutorials can be found at TeeChart's program group.
You can do that using PrintPartial, which accesses the Printer object, as shown in tutorial 14, for example:
Code: Select all
uses Printers;
procedure TForm1.Button1Click(Sender: TObject);
begin
//Add the Printer unit to the Uses section of your project
Printer.BeginDoc;
Printer.Title:='my printer title';
Chart1.PrintPartial(Rect(0,0,500,300));
Chart2.PrintPartial(Rect(0,400,900,700));
Printer.EndDoc;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |