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

OnCalc - ResetComponent problem (bug?)

edited October 2003 in General
Dear group,

I'm using a TppVariable to calculate the totals in a Group. This total
appears multipule time (subtotal). In the OnCalc of the variable I do the
following:
value := value +Query.FieldByName('COUNT').AsInteger;

The ResetComponent is: ppGroup2 (the owner of the variable)
The ResetType = veGroupEnd.
The CalcType = veDataPipelineTraversal
for Query.

Whats the problem:
When the total is calculated at the end of the page before then is the last
value this total used for the next page total. An example:

COUNT
3
2
10
TOTAL: 15
-----PAGE END----
-----START NEXT PAGE----
COUNT
1
4
2
TOTAL: 17 (= the 1+4+2= 7 from this page end the 10 from the previous page)

Somebody knows there's a bugfix for this? Or isnt it a bug?

I'm using: ReportBuilder 6.03 Professional

In anticipation much thanks.

Regards,
Hans van Dalen
the Netherlands.

Comments

  • edited October 2003
    Hi Hans,

    This is not a known bug in ReportBuilder. As a test, try downloading a
    trial version of ReportBuilder 7.03 and see if that helps. If not, please
    send a small example demonstrating the issue in .zip fomat to
    support@digital-metaphors.com and I'll take a look at it for you.

    --
    Best Regards,

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