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

Dynamic page width

Hello

How would I make the width of the report page Dynamic?

Thanks

Comments

  • Hi Mayerlin,

    The page width is controlled by the Report.PrinterSetup.PaperWidth property. There is no built-in feature to automatically increase the paper width based on the space used.

    It is possible to alter the PaperWidth property in code to give the space needed. In my quick testing, using the OnStartPage event of the report, I was able to successfully increase the width of each page of a report.
    procedure TForm2.ppReport1StartPage(Sender: TObject);
    begin
    ppReport1.PrinterSetup.PaperWidth := ppReport1.PrinterSetup.PaperWidth + 0.5;

    end;
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.