Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
Setting Margins
rbuser
July 2004
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
nicocizik
July 2004
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.
Comments
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;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com