Home RAP

calculations not correct when skipping to end in preview mode

edited March 2010 in RAP
We use delphi 6 with rb 7.04.
In some reports where I do calculations in group and footer events I
sometimes get incorrect results when in preview mode when skipping to the
end(for the first time). They are simple totals and averages using those
totals for it's calculations, mind you those are not dbcalc components
calculating averages and totals but done using procedures fired upon the
group and footer events.
all works perfect when printing or when in preview just using next page
instead of skip to end. Skipping to the end works ok when the user already
been on the page before.

Do you know what could be the problem. If you need more detailed information
please tell me.

kind regards,

Luc Neville


  • edited March 2010
    The TppVariable and the TppVariable.OnCalc event must be used to perform
    calculations. The Developers Guide has a tutorial on performing
    calculations. Additional examples can be found in the the demo and on
    rbWiki. Here is an overview article on rbWiki.


    Nard Moseley
    Digital Metaphors

    Best regards,

    Nard Moseley
    Digital Metaphors
This discussion has been closed.