Overview
Version
Report Server Version | Plugin Version |
11.0 | V1.3.1 |
Application Scenario
Due to the calculation logic of the report, you cannot define the page number formula on the Condition Attribute settings page. However, in some scenarios such as displaying the title only on even pages, it is necessary to define the page number formula in Condition Attribute, as shown in the following figure.
Function Description
After the plugin is installed, the $page_number and $totalPage_number formulas in Condition Attribute can also be defined for calculation. Currently, the page number parameters can be used in Font, New Value, Background, Font Color, and other styles in Condition Attribute.

Procedure
Take a template as an example to set it to display the title on even pages and not display the title on odd pages.
Plugin Installation
You can obtain the plugin at Page Number Parameter Availability in Condition Attribute.
For details about installing the plugin in the designer, see Designer Plugin Management.
For details about installing the plugin on the server, see Server Plugin Management.
Opening the Report
You can download the template: Page Number Parameter Availability in Condition Attribute.cpt.
Adding a Condition Attribute
Select the title cell A1, choose Condition Attribute > Add Condition on the attribute panel on the right side, and rename the newly-added condition attribute as Title on Even-Numbered Pages, No Title Displayed on Odd Pages. Click the edition button and add New Value as null. Add the condition attribution of the New Value type and set the page number formula as: $$page_number % 2 != 0. This formula indicates that when the page number is odd, the title is empty, as shown in the following figure.
Effect Display
1. On PC
Save the template and click Pagination Preview. The preview effect is shown in the following figure.
1. Odd pages: Do not display the title.
2. Even pages: Display title.
2. On Mobile Terminals
The preview effects on the DataAnalyst and HTML5 apps are the same, as shown in the following figure.
Template Download
You can download the template Page Number Parameter Availability in Condition Attribute.cpt.