how to set the Printer Title property

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
BVSimmons
Newbie
Newbie
Posts: 3
Joined: Tue Jul 23, 2013 12:00 am

how to set the Printer Title property

Post by BVSimmons » Wed Sep 04, 2013 3:37 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: how to set the Printer Title property

Post by Narcís » Thu Sep 05, 2013 9:00 am

Hi Bernard,

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;
Tutorials can be found at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply