【问题标题】:SSRS Report Viewer - Multi Select Parameter IssueSSRS 报告查看器 - 多选参数问题
【发布时间】: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


【解决方案1】:

我在 ssrs 2019 中遇到了同样的错误。如果我的报告包含很多参数,导致滚动条将它们全部显示出来,我唯一一次让参数失败是它位于列表的底部/滚动条显示区域的底部。如果我只是将该参数在列表中向上移动,它就会起作用,而那些移动到列表底部的参数就会停止工作。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2014-07-22
  • 1970-01-01
  • 1970-01-01
  • 2018-10-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多