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

Problem using SystemVariable, count pages...

edited April 2007 in General
Hello, I'm using SystemVariable, to count my pages, using vartype :=
PageSetDesc

But it's a bug in the System Variable, when I preview, show me: Page 1 to 1,
but I have more then 30 pages... when I go to the last page, the counter
show me correct.. but it's necessary to go to the last page, to show me
correct, if I doesn't do these, show me:

Page 1: Page 1 to 1
Page 2: Page 2 to 2
....

I'm using 10.06 version to BDS2006.

Thanks for all, and sorry my poor english.

Fellipe H.

Comments

  • edited April 2007
    Fillipe,

    You need to be sure you are generating a two pass report.
    Report.PassSetting := psTwoPass; This is also a published property.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2007
    Hello Nico,

    Yes, its all right now.. its psOnePass in my property.... can you explain it
    for me? What the diferences... the TwoPass, make more slow then OnePass?

    Fellipe H.

  • edited April 2007
    ReportBuilder does not know how many pages are in a report unless it passes
    through the report before generating all the drawcommands. For a OnePass
    report, there is no way for the report engine to determine the total number
    of pages.

    In a two pass report, only the pagination is calculated for the first pass
    so it occurs very quickly and should not slow down your reports
    significantly.

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