C# SSRS报告在加载时卡住
我正在ASPX页面的SSRS报告中加载报告,每当我尝试加载它时,它都会在加载时卡住。现在,最初我将参数直接输入到SSRS小程序提供的文本框中,然后加载报告,没有问题。现在我直接通过C代码输入参数,它被卡在我提到的加载屏幕上。我检查了参数(将代码设置为true),结果显示参数字段正确填充了我传递的数据。这是代码隐藏:C# SSRS报告在加载时卡住,c#,reporting-services,C#,Reporting Services,我正在ASPX页面的SSRS报告中加载报告,每当我尝试加载它时,它都会在加载时卡住。现在,最初我将参数直接输入到SSRS小程序提供的文本框中,然后加载报告,没有问题。现在我直接通过C代码输入参数,它被卡在我提到的加载屏幕上。我检查了参数(将代码设置为true),结果显示参数字段正确填充了我传递的数据。这是代码隐藏: ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remo
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();
我正在手动传递最后的值,以查看其响应情况。即使刷新命令未注释,它仍然不会加载。如果有人能告诉我一些情况,我将不胜感激看来这个错误是我的。我把代码放在“加载”过程中,我决定按一下按钮。按下按钮后,所有内容都正确显示,如果我决定将其添加到页面加载下,我必须使用“if isPostback”类型的代码来停止无休止的循环。节省了我的时间。谢谢