Hi,
I'm developing an web part that displays the reports from report server. I had followed following pointers wrt configuring the web.config of the SharePoint web application to do so.
- SharePoint 2010: Configure RDLC report with ReportViewer
- SharePoint 2010: "Session state has been disabled for ASP.NET. The Report Viewer control requires that session state be enabled in local mode"
I developed this web part on windows 7, SharePoint 2010 environment. The issue that I'm facing is: There is a continuous post back happening on the web part page as shown below and no report is loaded.
The below is the code snippet is what i used
privatevoid SetReportParameters() {// Set Processing Mode reportViewer1.ProcessingMode = ProcessingMode.Remote;// Set report server and report path reportViewer1.ServerReport.ReportServerUrl = new Uri("http://<ServerName>/reportserver"); reportViewer1.ServerReport.ReportPath = "/AdventureWorks Sample Reports/Employee Sales Summary"; List<ReportParameter> paramList = new List<ReportParameter>(); paramList.Add(new ReportParameter("EmpID", "288", false)); paramList.Add(new ReportParameter("ReportMonth", "12", false)); paramList.Add(new ReportParameter("ReportYear", "2003", false));this.reportViewer1.ServerReport.SetParameters(paramList);// Process and render the report reportViewer1.RefreshReport(); }
Any pointer/solution much appreciated.
Manish Patil http://patilmanishrao.wordpress.com Posting is provided AS IS with no warranties, and confers no rights.
