Search code examples
sqlsql-serverreporting-servicesssrs-2008report

Need Page Number on Sub report to start from 2 in SSRS


I have a main report and a subreport in the main report. The main report is like a cover page so I need to start the page number on the subreport from 2 and end with number of pages in the subreport +1 (for the main report). i.e; if My subreport has 10 pages it should start with 2 of 11. I have googled and all the resources tell me how to start from page 1. Thanks for your time and help in advance.


Solution

  • It's simple,

    = "Page " & Globals!PageNumber + 1 & " of " & Globals!TotalPages + 1
    

    This will give you Page 2 of 11.

    The fact remains the same that there are only 10 pages.