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

AfterGroupBreak - Not fired if new group starts at the top of a new page?

edited July 2012 in General
Am I overlooking something here? The AfterGroupBreak does not appear
to fire if the group ends at the bottom of a page and the start of the
new group begins on a new page.

I am doing some calculations in a calc variable using global variables.
The report is sorted and has two group breaks. In group1, I use the
Group1AfterGroupBreak to reinitialize variables to zero. All looks
fine except that when a group ends on the bottom of a page, and the new
group starts on a fresh page, the variables do not seem to get
reinialized to zero. Is there another event that I could use to make
sure the variables are reinitialized every time the group breaks?


--

Comments

  • edited July 2012
    In my testing with RB 14.05 and Delphi XE2, the Group.AfterGroupBreak
    fires as expected when a group ends at the bottom of a page. Are you
    able to recreate this with a simple example I could run here? If so,
    please send the example in .zip format to me and I'll take a look at it
    for you.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2012
    I found a work around by resetting the variables inside a calc variable
    after the sorted variable changes value.

This discussion has been closed.