SSRS Render URL - Total Page Count

Karl Cinnamond 0 Reputation points
2023-01-11T21:44:00.3466667+00:00

Using SSRS URL Access (REST) we need to get Total Page Count.

We are integration SSRS reports into our web application and calling our reports using e.g. POST to

/ReportServer?/myReportToRender&rs:Command=Render&rc:Toolbar=false&rc:Section=3&rs:Format=HTML5

Looking at the documents we can of course Page through using Section=PageNo wanted

BUT the response doesnt provide any indication in the Header, or HTML body of how many pages there are total?

Am I missing a command for the URL, that will calculate this?

Developer technologies ASP.NET ASP.NET Core
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-01-12T03:06:08.9966667+00:00

    Hi @Karl Cinnamond

    Based on my searches, there doesn't seem to be a way to get the total number of pages accessed by URL. Here is a reference on URL access parameters: [https://learn.microsoft.com/en-us/sql/reporting-services/url-access-parameter-reference?view=sql-server-ver16.

    If you want to get the total number of pages, you can add a textbox in the header of the report, and then use the global variable TotalPages in the expression.

    1

    2

    For more details, you can refer to this link: [https://learn.microsoft.com/en-us/sql/reporting-services/report-design/built-in-collections-built-in-globals-and-users-references-report-builder?view=sql-server-ver16.

    Best regards,

    Aniya


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.