none
ReportView -Changing LocalPath Dynamically RRS feed

  • Question

  •  

    Hi,

      Using VS2005 SP1 and .Net 2.0 SP1, I have a reportviewer control that I would like to assign to 1 of 3 different reports based on a user selection (dropdown). I initially have the LocalReport.ReportPath property blank. The first run through the aspx page runs according to the user selection, but if the user selects a different dropdown and clicks the 'Run Report' button, the report does not change. I have verified through debugging that the LocalReport.ReportPath is being set. Is there something obvious that I am missing?

     

    Thanks in advance

    Hank

    Friday, February 29, 2008 3:24 PM

Answers

  • When changing the local report definition, you will first need to call ReportViewer.Reset(), then set the new report path.

    Friday, February 29, 2008 4:19 PM
    Moderator

All replies

  • I could speculate at a few possible reasons, but would you be open to posting your code and we could take a look at what may be causing the problem?

    Friday, February 29, 2008 3:42 PM
  • When changing the local report definition, you will first need to call ReportViewer.Reset(), then set the new report path.

    Friday, February 29, 2008 4:19 PM
    Moderator