【发布时间】:2014-10-07 21:07:26
【问题描述】:
我正在我的 ASPNET 网页中显示一个 SSRS 报表查看器控件。我正在使用报告处理。它适用于报表查看器中的普通参数,但对多选参数表现奇怪。如果我单击一个多选参数,我可以看到列表闪烁一秒钟然后消失。每次我点击它都会这样做。
任何人都有一个解决方案来阻止这种闪烁和消失,让我可以从一系列参数中进行选择?
我已经尝试开启 IE8 兼容模式,但没有成功。
有什么建议吗?
谢谢!
// Set the processing mode for the ReportViewer to Remote
reportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
Microsoft.Reporting.WebForms.ServerReport serverReport = reportViewer.ServerReport;
// Set the report server URL and report path
string reportURL = string.Empty;
switch (ConfigurationManager.AppSettings["Environment"].ToUpper())
{
case "TEST":
reportURL = ConfigurationManager.AppSettings["testURL"];
break;
case "STAGE":
reportURL = ConfigurationManager.AppSettings["stageURL"];
break;
case "PROD":
reportURL = ConfigurationManager.AppSettings["prodURL"];
break;
default:
this.lblMessage.Text = "Environment not found.";
return;
}
serverReport.ReportServerUrl = new Uri(reportURL);
serverReport.ReportPath = Path.Combine(ConfigManager.ReportingService.BaseReportPath, reportName);
【问题讨论】:
-
您能否向我们展示一些代码,说明您如何以及在何处设置参数以及如何调用报表查看器?
-
参数是在数据集的帮助下在SSRS报告本身中设置的。
标签: asp.net reporting-services reportviewer multi-select