Page 1 of 1

Totals for page + PrintOnPreviousPage

Posted: Thu Nov 29, 2012 1:41 pm
by kro
Hello,

I have encountered a problem when trying to calculate page totals on a page that has PrintOnPreviousPage set to true. I attach a report that illustrates the problem, but let me explain it in detail.

I have two pages: the first one has some content (which is at the moment unimportant) and then there is the second one with a data band and a footer for this data band. In the footer there's a text field with the number of rows per page (calculated using cCount function). The footer has PrintOnAllPages set to true.

The second page has PrintOnPreviousPage set to true, so some of the content of the data band is printed on the first page, together with the footer (because it has PrintOnAllPages). And the problem: on the first page the footer shows the number of rows from the second page. The number is repeated on the second page, and after on every other page everything is OK.

I suppose that this is because the counting of rows starts on the page where the data band is actually placed - the second page in this case. My question is: is this how it is supposed to work, or is it a bug?

Re: Totals for page + PrintOnPreviousPage

Posted: Fri Nov 30, 2012 1:56 pm
by HighAley
Hello.

Thank you for information.
We have reproduced the issue and need some time to solve it.
We'll let you know about the results.

Thank you.

Re: Totals for page + PrintOnPreviousPage

Posted: Fri Nov 30, 2012 9:32 pm
by Ivan
Hello,

Due to some pecularity of the engine we cannot fix this issue.
As a workaround, instead of expression

Code: Select all

{cCount(DataBand1)}
please use the following expression:

Code: Select all

{Totals.cCount(DataBand1)}
Thank you.

Re: Totals for page + PrintOnPreviousPage

Posted: Mon Dec 03, 2012 9:38 am
by kro
The workaround works fine. Thanks for your help.

Re: Totals for page + PrintOnPreviousPage

Posted: Mon Dec 03, 2012 10:26 am
by HighAley
Hello.

We are always glad to help you.
Let us know if you will need any additional help.

Thank you.