ppVariable OnGetText Triggering Before SummaryBand BeforeGenerate
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.
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.
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com