Display count in title band
Hi there,
in the onCalc event of a tppVariable I use the following code to count
rows with a specfic value:
if DBPipeline2['ja'] > 0 then varCountJa.Value := varCountJa.Value+1;
if DBPipeline2['nein'] > 0 then varCountNein.Value := varCountNein.Value+1;
if DBPipeline2['enthaltung'] > 0 then varCountEnth.Value :=
varCountEnth.Value+1;
If the vars 'varCountJa','varCountNein' and 'varCountEnth' are placed in
the summary band, the values are correct.
But if the vars are placed in the title band, the values are wrong.
Hope you can help me.
Thx very much,
greets ben
in the onCalc event of a tppVariable I use the following code to count
rows with a specfic value:
if DBPipeline2['ja'] > 0 then varCountJa.Value := varCountJa.Value+1;
if DBPipeline2['nein'] > 0 then varCountNein.Value := varCountNein.Value+1;
if DBPipeline2['enthaltung'] > 0 then varCountEnth.Value :=
varCountEnth.Value+1;
If the vars 'varCountJa','varCountNein' and 'varCountEnth' are placed in
the summary band, the values are correct.
But if the vars are placed in the title band, the values are wrong.
Hope you can help me.
Thx very much,
greets ben
This discussion has been closed.
Comments
Try setting the TppVariable.Lookahead property to True. This will calculate
the values during the first pass of the report and display them during the
second (when the report is actually viewed or printed).
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com