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

Different last page

edited July 2012 in General

Hi,

I have to design a report where the last page should contain only a
picture, all other pages should have a PageStyle band attached with
data on it. The pages must be numbered like page n of m. What would be
my best approach to achieve this. I could ofcourse put the last page in
a separate report, and put the total page count on both reports in a
ppLabel after changing the value, but I wonder if there's a neater way

--
Arno

Comments

  • edited July 2012
    Arno Verhoeven wrote:


    Using Delphi XE and RB12.05

    --
    Arno
  • edited July 2012
    Hi Arno,

    To create a page set description (Page n of m), you can simply place a
    TppSystemVariable on your report and set it's type to PageSetDesc. This
    will automatically change the pass setting of your report to psTwoPass
    which is necessary.

    By definition a Page Layer (or PageStyle for versions earlier than 14)
    will print behind every page of a report. You could manually hide the
    page layer for the last page by checking Report.AbsolutePageNo =
    Report.AbsolutePageCount.

    Finally the easiest way to create a separate last page of the report is
    to use a Summary band with the NewPage property set to True.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2012
    Nico Cizik (Digital Metaphors) wrote:


    Thanks Nico,

    got it working :)

    --
    Arno
This discussion has been closed.