0
我在的.NET Web應用程序中使用的ReportViewer 9 我有三個參數(下面的代碼) 我不想傳遞任何參數編程 基本上我想的ReportViewer顯示報表中顯示SSRS報告params,然後選擇任何 params並按每次查看報告即簡單不與網頁交互。SSRS的ReportViewer刷新W/O查看報告
它會顯示參數區域並啓用第一個參數下拉菜單 但是,當我選擇某個值並單擊第二個下拉菜單時,它會刷新默認檢索到的報告並將所有下拉列表再次設置爲默認值!
它不會讓我在有序的方式,選擇3名參數的下拉列表中一個又一個,然後在查看報告單擊
viewer.ServerReport.ReportServerCredentials =
new MyReportServerCredentials();
viewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote; //work on report resides in the server not local
viewer.ShowFindControls = true;
viewer.ShowRefreshButton = true;
viewer.ShowExportControls = true;
viewer.ShowParameterPrompts = true; //hide parameters area and we will pass it through our controls
viewer.SizeToReportContent = true;
//viewer.ServerReport.
viewer.ServerReport.ReportServerUrl = new Uri(System.Configuration.ConfigurationSettings.AppSettings["ReportingServiceUrl"]); //Report Server URL not Report Server Manager URL
viewer.ServerReport.ReportPath = report.Path;
viewer.ServerReport.Refresh(); //display the report
ek_ny謝謝它! Ajax控件有時會讓你忘記回覆 – user1192738 2012-02-06 17:10:16
非常感謝 - 非常感謝。 MVC真的開始讓你忘記它。 :) – 2012-02-06 17:11:39