【问题标题】:Reporting Services - disable auto loadingReporting Services - 禁用自动加载
【发布时间】:2012-06-15 14:14:15
【问题描述】:

如何禁用报告自动加载?如果我有所有参数的默认值,就会发生这种情况。

谢谢

【问题讨论】:

  • 您是否尝试过删除默认值,并在 ReportViewer 控件上设置 ShowParameterPrompts="True"?如果您不想让报表使用它们,为什么还要设置默认值?
  • 大多数情况下会使用默认值,但应该允许用户选择或更改默认值,我不想每次有人开始报告时都执行查询。
  • 这个工作顺利吗?

标签: reporting-services business-intelligence


【解决方案1】:

我在 Microsoft connect 找到了解决方法。

首先,在设计师集合ShowReportBody= false

然后,在后面的代码中:

protected void ReportViewer1_SubmittingParameterValues(对象发件人,Microsoft.Reporting.WebForms.ReportParametersEventArgs e) { this.ReportViewer1.ShowReportBody = true; }

【讨论】:

    【解决方案2】:

    在 ReportViewer 控件上设置 ShowParameterPrompts="True"。这应该会禁用自动呈现报告。

    【讨论】:

      猜你喜欢
      • 2020-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多