Wrong totalisations in Variable
I have a variable with a calculation of the type:
Value := Value + ....
and the variable timing is set at GroupEnd.
When I preview the report, all values are good, but when I print/export from
the preview screen then the total value of the first group on the print is
wrong if the page on my preview screen did not have the end of the group as
last on the page.
The running value of the variable during the preview is added to the first
group total of the print, because the group end event is not fired at the
start of the print and the variable value is not reset at the beginning of
the print.
Freerk
Value := Value + ....
and the variable timing is set at GroupEnd.
When I preview the report, all values are good, but when I print/export from
the preview screen then the total value of the first group on the print is
wrong if the page on my preview screen did not have the end of the group as
last on the page.
The running value of the variable during the preview is added to the first
group total of the print, because the group end event is not fired at the
start of the print and the variable value is not reset at the beginning of
the print.
Freerk
This discussion has been closed.
Comments
The most common cause for this behavior is the manipulation of the dataset
during report generation. As a test, try commenting out all of your event
handlers, then incrememtally add them back to try to isolate the problem.
If you are still having problems after this, please send a small example
demonstrating the issue in .zip format to support@digital-metaphors.com and
we'll take a look at it for you.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com