[英]SSRS Report Stuck on Loading
我在ASPX页面的SSRS报告中加载报告,每当我尝试加载它时,它都会被加载。 现在,我最初将参数直接输入到SSRS applet提供的texbox中,并且报告加载时没有问题。 现在我直接通过C#代码输入参数,它被卡在我提到的加载屏幕中。 我检查了参数(将代码设置为true),它向我显示参数字段正在填充我传递的数据。 这是代码隐藏:
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://servername:80/ReportServer_MSSQLSERVER2012"); // Report Server URL
ReportViewer1.ServerReport.ReportPath = "/Test/Report2"; // Report Name
ReportViewer1.ShowParameterPrompts = true;
ReportViewer1.ShowPrintButton = true;
Microsoft.Reporting.WebForms.ReportParameter[] Param = new Microsoft.Reporting.WebForms.ReportParameter[4];
Param[0] = new Microsoft.Reporting.WebForms.ReportParameter("ID", Convert.ToString(Session["aCode"]));
Param[1] = new Microsoft.Reporting.WebForms.ReportParameter("IDATE", "02/02/2002");
Param[2] = new Microsoft.Reporting.WebForms.ReportParameter("FDATE", "11/06/2013");
Param[3] = new Microsoft.Reporting.WebForms.ReportParameter("Acct", "2005");
ReportViewer1.ServerReport.SetParameters(Param);
//ReportViewer1.ServerReport.Refresh();
我手动传递最后的值,看看它是如何响应的。 即使取消注释“刷新”命令,它仍然无法加载。 如果有人可以发光,我会非常感激
似乎错误是我的。 我把这些代码放在“加载”过程中,我决定将代码放在Button按下。 使用按钮按下一切正确显示,如果我决定在Page_Load下添加它,我必须使用“if isPostback”类型的代码来停止无限循环。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.