Page 1 of 1

ConditionL ENbling of pages based on TotalPageCount of another page

Posted: Thu Dec 19, 2024 6:14 pm
by Sarthak
Hi there,

Let’s put aside the previous requirements for now. Currently, I have a report with two pages: **Page 1** and **Page 2**. Both pages have the "Reset Page Number" property set to true.

Now, I want to display the total page count of **Page 1** on **Page 2**. Could you suggest an approach for achieving this, perhaps by defining a variable or using another suitable method?

Because on both page we use same system variable TotalPageCount and it is not possible to fetch it on another page.

Re: ConditionL ENbling of pages based on TotalPageCount of another page

Posted: Thu Dec 19, 2024 11:10 pm
by Lech Kulikowski
Hello,

You can use the variable to store the count of pages the page1.

Thank you.

Re: ConditionL ENbling of pages based on TotalPageCount of another page

Posted: Fri Dec 20, 2024 3:06 am
by Sarthak
Let’s say Page 1 has a page count of 2, and Page 2 has a count of 1.
I want to enable Page 2 when Page 1 contains multi-page data and disable Page 1.
If Page 1 contains single-page data, I want to disable Page 2 and print only Page 1.

Re: ConditionL ENbling of pages based on TotalPageCount of another page

Posted: Fri Dec 20, 2024 9:44 am
by Lech Kulikowski
Hello,

Try to use the Double Pass option for the report. In the first pass check the count of pages, and in the second pass, disable pages by the Enabled option.

Thank you.