Count the Rows inside a databand per page

Is There a way to Count the Number of Rows on the page and the Databand?


Thanks in advance

Comments

  • hello,

    declare a variable ligna for example of type integer. initialize ligna to 0 in the Page1OnBeforePrint event. and increment ligna in the MasterData1OnBeforePrint event.

    like that on every page ligna starts with 1.

    Thanks

  • Hello!

    The easiest way to count the number of DataBand rows printed on each individual page, without using scripts, is via the Total system object, which automatically resets after printing:

    In the Data -> Totals -> New Total window, create a total (for example, PageRowCount).

    Set the following:

    Function: Count

    Evaluate on the band: your DataBand

    Print on the band: PageFooter (or ColumnFooter)

    Reset after print: true

    Reset if repeated: false

    Place [PageRowCount] in the PageFooter — the total will automatically count the number of DataBand rows that fall on the current page and will reset before the next page.

This discussion has been closed.