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

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

Comments

  • 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.


    http://www.digital-metaphors.com/rbWiki/Delphi_Code/Calculations/Overview




    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.