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

Group Footer Band Problem

edited July 2002 in General

I am having trouble with total amounts in my GroupFooterBand.

The group total amounts are perfectly correct on the first page of my
report, but at the start of the second page and each page after that, the
group total amount in the GroupFooterBand mysteriously re-sets itself to
zero for no apparent reason.

I do initialize the group total amount to zero in the OnBeforePrint
event for the entire report, but it is my understanding that this event
fires only once before the report is printed and not once before each page
is printed. Do I have that correct?

Does ReportBuilder automatically fire some other event which resets
this value to zero at the start of every page? Can I tell it to not do
that?


Any help appreciated,
R

Comments

  • edited July 2002
    Correct, the Report's BeforePrint fires once. The OnStartPage event, on the
    other hand, fires at the beginning of every page. One thing to check is the
    Timing property of the variables and set the Reset On property to something
    like GroupEnd or GroupStart rather than PageEnd or PageStart. Why don't you
    simply place a DBCalc in your group footer to calculate the totals which
    will take care of till the reset and the timing issues for you?

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.