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

Strange page count in report

edited February 2003 in General
Hi, I created a report that have multiple subreports, when I browse the
report (whether during runtime or design time) I found the value of
pagecount system variables the same as the page number, that is, when I
browse page 1 of a report containing *5* pages, it shows page '1 of 1',
scrolling to page 2 gives page '2 of 2' and so on, until I scroll back to
the first page the pagecount resets to 5! Is there anything I'm missing?
Please comment and greatly appreciate your help!

HL

Comments

  • edited February 2003
    Set the report to two pass, either by TppReport.PassSetting := psTwoPass or
    in the designer the menu Report/Pass Setting/Two pass

    Enjoy

    Ed Dressel
    Team DM

  • edited February 2003

    If you are getting Page 1 of 1, Page 2 of 2, etc., the you need to set
    Report.PassSetting to psTwoPass.

    If the subreports are pbSection, you can use the subreport.ResetPageNo to
    control whether page number restarts when a subreport generates.


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

    Best regards,

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