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

Page Numbering on SubReports

edited January 2004 in Subreports
Hi All,

I have a report with 3 subreports on the main detail band. The main
report has no data pipeline but each subreport does. Everything is
printing correctly except the page numbering is being reset by the
last subreport. With my sample data, each subreport prints one page.

Each subreport is has PrintBehavior set to pbSection and ResetPageNo
set to False. However, the last subreport to print displays 'Page 1
ot 1' instead of 'Page 3 of 3' like this:

subreport1 -> 'Page 1 of 3'
subreport2 -> 'Page 2 of 3'
subreport3 -> 'Page 1 of 1' // Should be 'Page 3 of 3'

What am I missing?
Steve

Comments

  • edited January 2004

    Using RB 7.03 I just performed a test by modifying Demo 52 (dm0052.pas) in
    the RBuilder\Demos\Reports\Demo.dpr project.

    This report contains 2 sections. If I set each to ResetPageNo of False and
    set Report.PassSetting to psTwoPass everything works as expected.

    Try performing the same test.



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2004
    I've got 3 sections and all are setup as you suggest. ResetPageNo =
    False and PassSetting = psTwoPass. The 3rd section is still resetting
    the page number. Each section has groups, but none of them are set to
    reset the page number. What else can cause the page number to be
    reset?

    On Tue, 13 Jan 2004 10:43:51 -0700, "Nard Moseley \(Digital
  • edited January 2004

    Groups and Sections can both cause the page number to be reset. I cannot
    think of anything else.

    1. Try creating a very simple example report using the DBDemos data. Build
    and test it incrementally to see where the issue arises. You can e-mail the
    example to support@digital-metaphors.com and we can check it out here.

    2. If you want to trace the RB source code, modify your library path from
    RBuilder\Lib to RBuilder\Source. The method GenerateSection in ppSubRpt.pas
    looks like a good place to start.



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.