none
Print Preview bug RRS feed

  • Question

  • Hi,

    I'm working on an Windows Forms application that uses ReportViewer control to display reports in local processing mode (.rdlc files). The problem is that sometimes when you preview the report is shows the second page only (which is the last page, too, so I don't know if it shows the last page or the second page) and if you want to print the report it prints the second page only. To resolve this you can refresh the report by pressing the Refresh button in ReportViewer control and the report renders ok displaying the first page. Also the page count is reported wrong and sometimes refreshing the reports solve this too.

    Any ideeas? Thanks!

    Thursday, August 9, 2007 1:25 PM

Answers

  • Adding a line to refresh the LocalReport seems to have fixed things.

     

    Me.ReportViewer1.LocalReport.Refresh()

    Me.ReportViewer1.RefreshReport()

    Tuesday, November 20, 2007 3:46 PM

All replies

  •  

    I'm having this same problem.

     

    Only the last page is displayed in the ReportViewer.  The "page of totalpages" shows "1 of 1" in the ReportViewer's toolbar.  If I click the "refresh button" it displays all pages.

     

    Anyway to solve this?

    Tuesday, November 20, 2007 3:29 PM
  • Adding a line to refresh the LocalReport seems to have fixed things.

     

    Me.ReportViewer1.LocalReport.Refresh()

    Me.ReportViewer1.RefreshReport()

    Tuesday, November 20, 2007 3:46 PM