Skip to Content
author's profile photo Former Member
Former Member

TotalPages() in PLD

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2009 at 10:59 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2009 at 02:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2009 at 05:32 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2011 at 05:16 AM

    use currentpage() / totalpage()

    must place currentpage() , /, totalpage() in a separate freeText At footer

    This is what i had done, and it worked perfect

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2015 at 12:02 PM

    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,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.