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

RAP - Printer MarginBottom

edited October 2004 in RAP
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;

Comments

  • edited October 2004
    Hi Vincenzo,

    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

    Best Regards,

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