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

ppVariable OnGetText Triggering Before SummaryBand BeforeGenerate

edited July 2012 in General
Hi,

I am converting some reports from Delphi 6 over to XE2 and have
noticed one odd thing.

I have one report which has a couple of ppVariables in the Summary
Band, each of these variables has the OnGetText event handler set. The
Summary Band has the BeforeGenerate event handler set.

When I run this report the ppVariable OnGetText event handlers are
triggering before the BeforeGenerate event handler for the band. I then
run the same report under Delphi 6 and this behaviour does not occur.

David.

Comments

  • edited July 2012
    Hi David,

    The GetText event of a variable can fire multiple times in order to
    properly cache and retrieve calculated values.

    If you are making or displaying calculations with these variables, you
    should use the OnCalc event. If you need to simply display text, I
    recommend using a label component instead.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.