Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

TppHTMLDevice.DocumentTitle

edited June 2012 in Devices
When printing to the new TppHTMLDevice, how does one set the DocumentTitle
property?

Comments

  • edited June 2012
    You can use the OnFileDeviceCreate event of the report to typecast the
    Report.FileDevice property and assign the DocumentTitle property (if
    using the HTML Device).

    procedure TForm1.ppReport1FileDeviceCreate(Sender: TObject);
    begin
    TppHTMLDevice(ppReport1.FileDevice).DocumentTitle := 'My Web Page';

    end;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.