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

Setting Margins

edited July 2004 in General
Can margins be set after a call to report.print? If so, where? I have tried
in the BeforePrint event to no avail.

Shane

Comments

  • edited July 2004
    Hi Shane,

    In my testing I was able to adjust the page margins inside the
    Report.BeforePrint event successfully. Below was the code I entered into
    the event.

    procedure TForm1.ppReport1BeforePrint(Sender: TObject);
    begin
    ppReport1.PrinterSetup.MarginBottom := 1.25;
    ppReport1.PrinterSetup.MarginLeft := 1.25;
    ppReport1.PrinterSetup.MarginRight := 1.25;
    ppReport1.PrinterSetup.MarginTop := 1.25;
    end;

    --
    Best Regards,

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