views:

517

answers:

3

i want to get total number of pages in form,which is placed report viewer..(int t=int T = objReportViewer.LocalReport.GetTotalPages();)i used this code,actually report have 5 pages but got only one page

+1  A: 

Use Globals.TotalPages?

Example for a text box: =Globals.PageNumber & " of " & Globals.TotalPages

gbn
Darn you for getting in before me and getting the rep due for this answer!
Pulsehead
A: 

In C# with ReportViewer 2010, a

reportViewerName.PageCountMode = PageCountMode.Actual;

did the job for me.

PS: Just seen, this thread is more than an 1 year old, sorry!

chiffre