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

calculate group pageno/group pagecount

edited January 2008 in General
Hello,
In a report with multiple groups and subreports the group pageno/pagecount
is not correct.
I tried using ResetPageNo and StartNewPage on Grouplevel but that don't
work.
Report description:

GroupHeaderA
GroupHeaderB
Detail
SubReport1
SubReport2
GroupFooterB
GroupFooterA
PageFooter (always visible)

SubReport1 contains 2 other SubReports , Sub1A and Sub1B
PageNo and PageCount is printed in the PageFooter
Ex
Contract1 -> StartNewPage
PartA(Header) ->StartNewPage
Detail PartA (childSubReport1) 1 page
PartA(Footer)
PageFooter
Contract1
PartB(no header)StartNewPage
Detail PartB (=childSubReport2) 3pages
PartB(no header)
PageFooter

Total 4 pages:
Page1 should print as Pageset 1 / 1
Page2 should print as Pageset 1 / 3
Page3 should print as Pageset 2 / 3
Page4 should print as Pageset 3 / 3

PassSetting : TwoPass
How can I manual calculate the pageno/pagecount ?

We use Reportbuilder 9.02 with Delphi7

Thanks.
E.

Comments

  • edited January 2008
    Hi Eddy,

    Are you trying to display the PageNo and PageCount properties to manually
    display the page number and count? I would recommend placing a
    TppSystemVariable in your footer band set to PageSetDesc and see if that
    gives you the correct values. If this still does not give the correct
    values, try simplifying your report perhaps by removing some of the
    subreports and see if you can find where the problem is occuring.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2008
    Hi,
    Using the TppSystemVariable does noet give me the result I expect.
    I tried using the variable in different ways ( on Pagefooter, in groupfouter
    , ...) but none of them worked.
    The Pageset only resets on each Main(First) GroupBreak
    The functional specifications don't allow me to further simplify the report.
    In the situation described below the Pageset shows
    Contract1: 1/4
    Contract1: 2/4 ==> reset of second Group not executed
    Contract1: 3/4
    Contract1: 4/4
    Contract2: 1/5
    Contract2: 2/5 ==> reset of second Group not executed
    Contract2: 3/5 Part B detail1
    Contract2: 4/5
    Contract2: 5/5 Part B detail 2

    The subReport of PART B also contains TppRichText ( 1 or more
    Annexes(details) for the contract).
    The annexes sometimes use more then one page for a single DetailBand of the
    subreport.

    Are there other options then using the TppSystemVariable to
    display/calculate the PagesetDesc ?

    Everything (groupings, headers, footers, groupfooter, subreports ....) for
    generating this report works perfect.
    Just this 'simple' looking functionality todo.
    I hope we can solve this.
    Thanks in advance.
    Regards,
    Eddy


  • edited February 2008
    Hi Eddy,

    In my quick testing nested groups did reset the page number with a system
    variable. Are you sure you have your second group set to start a new page
    and reset the page number? If you would like to take complete control over
    the display of the pages take a look at the help topics for the
    AbsolutePageNo, AbsolutePageCount, PageNo, and PageCount properties of the
    TppCustomReport object. These four properties give you the page number and
    count for each group and entire report.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2008
    Hi Nico,
    Sorry for my late response.
    We use Reportbuilder 9.02 with Delphi7.
    Is it possible that the ResetPageNo for nested groups is not supported in
    this version of ReportBuilder ?
    The PageNo/PageCount reset only works on the highest grouplevel like
    described below.
    We created a simple report (1 datapipeline, 3 groups) without subreports or
    other complex functionality
    and the problem is stil the same.
    Is it possible to send us an example of how to take control over
    pagenumbering with nested groups ?
    Which events/components/calculations/timings to use on groups and variables
    , .....
    Until today we were not able to fix this problem.

    Thanks in advance.
    Eddy

  • edited February 2008
    Hi Eddy,

    My first suggestion would be to update your version of ReportBuilder to the
    latest RB 9 release (9.03). For update instructions, send an email to
    info@digital-metaphors.com with your serial number and purchasing email
    address.

    If the problem still occurs, please send the example you created that
    demonstrates the issue in .zip format to support@digital-metaphors.com and
    I'll test it with the latest version of ReportBuilder.

    --
    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.