Customizing PageFooter in CPL ActiveReports
In our last blog, we discussed how to customize the PageFooter in C1Reports. As the title suggests, lets discuss the approach to customize the PageFooter in Continuous Page Layout (CPL) in ActiveReports.
Problem Statement
For demonstration purpose, lets consider an example where the report displays a ‘Continued on Next Page…’ text on PageFooters on all pages and the last page displays ‘End of Report’ text in the PageFooter.
Implementation
To implement this behavior, we need to add two TextBox controls in the PageFooter of the report and toggle their visibility using the Hidden property in a way that their content is displayed on all but the last page of the report or vice-versa. Follow the steps mentioned below :
- Add TextBox1 in the PageFooter and set it's Text property to : 'Continued on Next Page…'
- To show the text of TextBox1 on all but the last page of the report, add the following expression in the Hidden property of the TextBox1 : '__=iif(Globals!PageNumber = Globals!TotalPages, True, False)'
- Add another textbox, TextBox2 in the PageFooter and set it's Text property to : 'End of Report'
- To show the text only on the last page of the report, add the following expression in the Hidden property of this TextBox2 : '__=iif(Globals!PageNumber = Globals!TotalPages, False, True)'