Group based teechart
I have a chart that I want to populate via a calculated field in the footer
of a group. basically this variable is the total for that group and I need
to add a point on the graph at each position for this group. However I've
attempted to add the Chart.Series[0].Add(StrToInt(lbTotalScore.Text)) in
various events and constantly end up with too many points - especially as I
navigate through the report and each page is reprinted. Is there an event
where I can guarantee to only return the correct number of printed groups?
Thanks
of a group. basically this variable is the total for that group and I need
to add a point on the graph at each position for this group. However I've
attempted to add the Chart.Series[0].Add(StrToInt(lbTotalScore.Text)) in
various events and constantly end up with too many points - especially as I
navigate through the report and each page is reprinted. Is there an event
where I can guarantee to only return the correct number of printed groups?
Thanks
This discussion has been closed.
Comments
There is only one event that is guarenteed to fire only once per traversal
and that is the TppVariable.OnCalc event. You could possibly place an
invisible TppVariable inside the band you need and use its OnCalc event to
add the new points to your TeeChart series. As for navigating through your
report multiple times, you might try setting the Report.CachePages property
to True. This will use more memory but should fix the issue.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com