ConditionL ENbling of pages based on TotalPageCount of another page

Stimulsoft Reports.JS discussion
Post Reply
Sarthak
Posts: 3
Joined: Thu Dec 19, 2024 5:59 pm

ConditionL ENbling of pages based on TotalPageCount of another page

Post 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.
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
Attachments
ReportSample.mrt
(7.14 KiB) Downloaded 72 times
Sarthak
Posts: 3
Joined: Thu Dec 19, 2024 5:59 pm

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

Post 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.
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

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

Post 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.
Post Reply