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

events onCalc of TppVariable and BeforePrint of the ppDetailBand

edited October 2002 in General
hello

The events onCalc of TppVariable and BeforePrint of the ppDetailBand should
just be executed once, because he executes all time that the user navigates
for the report, passing makes up for it makes up, and when he spends two
time in the same it makes up him turn executes it those events, with that
he/she does with that my routine of I calculate found in those events they
duplicate its correct value...

What should make?

Thank you very much.

Comments

  • edited October 2002
    Use the TppVariable and its OnCalc event for calculations. Do not use any
    other event or Delphi variable to store values. Otherwise, the pages are
    regenerated as they are requested, firing the event handlers again. One
    solution is to set Report.CachePages to true so that the pages aren't
    regenerated.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.