I need a report where on the bottom of each page a total sum for all report needs to be printed. I put text object with reference to user variable where required sum is accumulated. The problem is that sum I get is not total for whole report but only for currently printed pages. E.g. I printed 40 rows, I need on each page to have “Total: 40”, but I get “Total: 20” on the first page and “Total: 40” on the second. How it is possible to solve this problem?