Page 1 of 1

Problem using IsLastPage and ResetPageNumber

Posted: Mon Aug 17, 2015 12:27 pm
by Alvaro
Hello,

I have a report where I need different page headers and footers depending on the page number. I had no problems until I use ResetPageNumber because I need to print muliple reports at the same time, then the condition with IsLastPage is only working the first time, I mean, it's like once the variable is set to true it is never reset.
With the headers I've used IsFirstPage variable and it works well, but in the footers I tried everything with IsLastPage and still not working...
Any idea?
Thanks.

Re: Problem using IsLastPage and ResetPageNumber

Posted: Mon Aug 17, 2015 1:09 pm
by HighAley
Hello.

At the rendering time each page is the last.
It seems that you check the IsLastPage while report is rendered. At this moment there is no other pages and the current page is the last.
You could set the Number of Pass to the Double Pass or maybe there is an other solution of your issue.
Could you describe your issue more detailed. Why do you use IsLastPage variable?

Thank you.

Re: Problem using IsLastPage and ResetPageNumber

Posted: Mon Aug 17, 2015 3:54 pm
by Alvaro
I set Double Pass and the problem is the same.
I need to show the next page number in the bottom of the page, it must be shown in all the pages except the last one. I tried with PrintOn Except last page but when I set a ResetPegeNumber this also stop working. I tried to make some conditions like (if TotalPAgeCount == PageNumber) but it's not working either.
There is an option to force to the system to evaluate a formula after the rendering??

Re: Problem using IsLastPage and ResetPageNumber

Posted: Tue Aug 18, 2015 6:39 am
by HighAley
Hello.

You should use next expression

Code: Select all

PageNumberThrough == TotalPageCountThrough
and set the Number of Pass property of the report to Double Pass.
Please, look at the attached report template.

Thank you.

Re: Problem using IsLastPage and ResetPageNumber

Posted: Tue Aug 18, 2015 8:30 am
by Alvaro
Hello,

Still the same problem...
My report has 4 pages and the page numbers are: 1,2,1,2
I need to show the next page number so I've added a variable like this "PageNumber + 1", I need this: 2,(blank),2,(blank)
With your soultion i get: 2,3,(blank),(blank)
And using this formula "PageNumber == TotalPageCount" I get this: 2,(blank),(blank),(blank)

I'm using version 2013.2.1604, I don't know if something is fixed about this in the latest versions.
Thanks.

Re: Problem using IsLastPage and ResetPageNumber

Posted: Tue Aug 18, 2015 11:12 am
by HighAley
Hello.

Did you set the Number of Pass property of the report to Double Pass?
Please, try also our latest build and let us know about results.

Thank you.