Sunday 30 October 2011

Custom Paging in SSRS report

This section will give us the way of generating custom paging in our report. We will also learn the use of Global variable in doing so.
Step 1: In the report design screen, right click and from the context menu, choose Add Page Footer
31.jpg
Once the Page Footer is added, we can then add controls to it.
32.jpg
Step 2: Let us add four textboxes from the Report Item toolbox onto the designer as shown under
33.jpg
Step 3:Choose the 2nd textbox and click on the Expression
34.jpg
Step 4:From the expression window that opens, let us write the expression
=Globals!PageNumber
35.jpg
Similarly for the 4th Textbox, let us write the expression as =Globals!TotalPages.
Step 5:Run the report and the output is as under
36.jpg

No comments:

Post a Comment

SSIS: Creating Package Configurations

This post discusses the creation of Configuration Files and how they can be useful while migrating a package from one environment to an...