PassSetting issue
Hi, I have a report that involved a lot of calculations using variables. I
will say its not the best designed as in I would change it to pull figures
from the database rather than use variables to calculate.
Anyway, if I set my PassSetting to onepass and I preview the report page by
page, it doesn't add a figure from a previously printed subreport. if I
navigate to the last page and come back, it adds correctly and the correct
figure is displayed.
If I set it to twopass, it works fine. I have my variables in the OnCalc
events
Any reason why this may be happening?
--
RB 6.03
Delphi 6
Cheers,
Shanil
will say its not the best designed as in I would change it to pull figures
from the database rather than use variables to calculate.
Anyway, if I set my PassSetting to onepass and I preview the report page by
page, it doesn't add a figure from a previously printed subreport. if I
navigate to the last page and come back, it adds correctly and the correct
figure is displayed.
If I set it to twopass, it works fine. I have my variables in the OnCalc
events
Any reason why this may be happening?
--
RB 6.03
Delphi 6
Cheers,
Shanil
This discussion has been closed.
Comments
In which event are you adding the value from the previously generated
report? Try placing a break point in this code and see how it reacts as you
step through your report for the first pass.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
values. On the first pass, one of the variables results in 0, when it
should have a value greater than 0. I've checked the CalcOrder also and
they look ok.
Anyways, for now the twoPass seems to have fixed my issue.