on 11-30-2009 10:02 PM
In PLD, I want to compare Current Page with Total Pages and print something on the last page only. I get a message that TotalPages() can't work with other functions.
How can I do it?
Hi Friends,
We will get total pages number in PLD as below steps.
1. To create field with Formula as (TotalPages())
Source Type:Formula
->then go to Formula Editor and select TotalPages().
Its working fine for me .
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use currentpage() / totalpage()
must place currentpage() , /, totalpage() in a separate freeText At footer
This is what i had done, and it worked perfect
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Olga Simkin,
Dont compare the Current Page with Total Pages in Concat() Formula.
because some times will be get the error(xxxx) in print.
IF you need to compare the Current Page with Total Pages.
Try this,
->> Create 1 Formula field in Page Footer on require PLD.
Formula
CurrentPage()==TotalPages()
Current Page = 5, Total Pages = 5.
Result: in 5th Page(formula field in Page Footer) Print -> 1
Regards,
Madhan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Olga,
If I understand correctly, the reason why you need the TotalPages formula is because you would like to add a field which will print only on the last page, and not to show the current/total number of pages. If this is right, the following workaround can be used:
You could use the SystemString(ContinueNextPageNotice) formula, which prints 'Continued on next page' on each and every page, apart from the last. Therefore, you could add another formula to state that this previous field is empty: eg. if SystemString(ContinueNextPageNotice) is field F_100, then:
F_100==''
where '' are single quote marks, with nothing in between them.
This formula will print '1' only on the last page, and will be empty on the rest, which means you could use it to link fields to be printed on the last page only to it.
I hope this helps.
Regards,
Nat
Hi,
Dont use Concat(TotalPages()), thats the meaning of your error the "can't work with other functions", Used the Formula TotalPages() as indenpendent Formula, you cant insert it to other functions.
Thank you,
regards,
Clint
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is right. No TotalPages() could be used in any formula. PLD calculates this value at run time until the last page.
A simple solution: put the info on the End of Report area. That will ensure it is on the last page.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.