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
2009-04-20 12:28:07
Darn you for getting in before me and getting the rep due for this answer!
Pulsehead
2009-04-20 19:02:21
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
2010-10-13 08:18:46