RAP - Printer MarginBottom
RB 7.03 Ent.
I need to calculate Printer MarginBottom in Report BeforePrint wth RAP.How
can I do it?
in delphi I calculate it with this code.
with ppReport do
begin
PrinterSetup.MarginBottom:=
((Printer.PaperHeight -
Printer.PageGutters.Top -
Printer.PrintableHeight) / Printer.PixelsPerInch.Y) *
25.4;
end;
end;
I need to calculate Printer MarginBottom in Report BeforePrint wth RAP.How
can I do it?
in delphi I calculate it with this code.
with ppReport do
begin
PrinterSetup.MarginBottom:=
((Printer.PaperHeight -
Printer.PageGutters.Top -
Printer.PrintableHeight) / Printer.PixelsPerInch.Y) *
25.4;
end;
end;
This discussion has been closed.
Comments
You will need to create a RAP pass thru function to gain access to these
properties. Using a pass thru function you could more or less use the same
code you posted below and still get the benefits of its output in RAP. See
the ReportBuilder Developer's Guide for a complete example on creating and
using a RAP Pass Thru Function.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com