Last post Jul 26, 2011 02:27 AM by You-Hu Fu
Jul 18, 2011 09:47 AM|amilo99|LINK
I have been searching for some guidance to dynamically load a report based on a user selection from the report server catalog. If I assign the report path in the designer it works, but it does not work when loading it from code behind.
repView.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
repView.ServerReport.ReportPath = sRep;
assistance will be appreciated!
Jul 20, 2011 05:16 AM|cninjas|LINK
Specify the IP and then take the path from the web.config application settings..that way you need not change the code in the deployment stage..
hope it helps..thanks,
Jul 26, 2011 02:27 AM|You-Hu Fu|LINK
I think the issue is that you are resetting the viewer on every postback since you do this during Page_Load. All of this work really belongs in Page_Init since it is constant for the run of the page. See this article which talks about similar symptoms
of the same problem -