Page 1 of 1

how to set the Printer Title property

Posted: Wed Sep 04, 2013 3:37 am
by 10066626
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

Re: how to set the Printer Title property

Posted: Thu Sep 05, 2013 9:00 am
by narcis
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.