Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Custom report viewer web part not working. Ajax Error

$
0
0

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.

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.

Manish Patil's Blog

↑ Grab this Headline Animator


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>