title: Total pages in a report using Report Viewer
body: <p>I want to get the total number of pages in a form, which is placed in Report 
  Viewer.. </p>
  
  <p>I used this code, actually the report has 5 pages but I got only one page.</p>
  
  <pre><code>int t=int T = objReportViewer.LocalReport.GetTotalPages();
  </code></pre>
  
  <p>How can I make it give me all 5 pages?</p>