ASPX ページの SSRS レポートにレポートを読み込んでいますが、読み込もうとすると読み込み中にスタックします。さて、最初は SSRS アプレットが提供するテキストボックスに直接パラメーターを入力していましたが、レポートは問題なく読み込まれました。現在、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();
最後の値を手動で渡して、その応答を確認しています。Refresh コマンドのコメントを外しても読み込まれません。誰かが光を当てることができれば、私はそれを大いに感謝します