problem with ppVariable/Am I Stupid?
Hi,
I have written a report, based on a ADOQuery.
In the summary-part of the report I have placed a ppVariable. In the
OnCalc-event I'm doing some calculations with one of the fields of the
Query.
On screen the result of the calculations is perfect. After a print to my
printer the value of the ppVariable is the double of what it should be. How
can i prevent, that the OnCalc-event is firing twice.
Thanx in advance,
Geert
I have written a report, based on a ADOQuery.
In the summary-part of the report I have placed a ppVariable. In the
OnCalc-event I'm doing some calculations with one of the fields of the
Query.
On screen the result of the calculations is perfect. After a print to my
printer the value of the ppVariable is the double of what it should be. How
can i prevent, that the OnCalc-event is firing twice.
Thanx in advance,
Geert
This discussion has been closed.
Comments
One Pass or do a pass check in the OnCalc in order to perform the
calculation only once. ie.
if (ppReport1.FirstPass) then
...do calculation
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Support is GREAT!!!!!!!!!!!!!!!!!!!!!!!!