Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show total number of pages in an RDLC report toolbar

Tags:

reportviewer

I have several reports using MS ReportViewer. The reports are showing the standard ReportViewer toolbar. On this toolbar is a page navigation section with back and forward buttons and the number of pages. For my reports they when the report first loads it always shows the number of pages as such:

1 of 2?

The question mark means it hasn't calculated the total number of pages yet and if you navigate to the last page this number will update. But I would like to have this report the total page count without the user having to navigate to the last page.

I looked around the RDLC properties and couldn't find any settings for this.

like image 803
John the Ripper Avatar asked Apr 03 '12 17:04

John the Ripper


1 Answers

You can add a textbox to the header and footer and set it to Globals!TotalPages. This will force the ssrs engine to process all the pages at the same time. You can hide the textbox though.

Hope this helps.

like image 106
Shakti Prakash Singh Avatar answered Jan 03 '23 19:01

Shakti Prakash Singh