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

How do I change the title in PrintPreview

edited September 2003 in General
The current title in the title band is ReportBuilder. I'd like to change it
at run time.

Thanks

Comments

  • edited September 2003
    Hi Joe,

    You can change the caption of the Preview Form by setting the
    Report.PreveiwForm.Caption property inside the OnPreviewFormCreate event.
    Something like the following...

    procedure TForm.ppReportPreviewFormCreate(Sender: TObject);
    begin
    ppReport.PreviewForm.Caption := 'Preview This';
    end;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2003
    Thanks - but Actually I'd like to change the ICON
  • edited September 2003
    Hi Joe,

    In the same event you will need to set the Report.PreviewForm.Icon property
    to the icon of your choice. The Report.PreviewForm is a TForm descendent so
    it contains all the same properties and methods that a regular form does.

    --
    Best Regards,

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