【问题标题】:How can I disable Parameter Prompt at run time in Crystal Report XI?如何在 Crystal Report XI 的运行时禁用参数提示?
【发布时间】:2009-08-03 09:18:10
【问题描述】:

如何在 Crystal Report XI 运行时禁用子报表中的参数提示?我使用了 Ms VS 2005,报告也包括在内。其他报表功能与水晶报表功能相同。其他报表在运行时不显示提示,不包括子报表。提示出现一个包含子报告。所以你可以提出任何建议。请告诉我。谢谢。

【问题讨论】:

    标签: crystal-reports


    【解决方案1】:

    【讨论】:

      【解决方案2】:
      【解决方案3】:

      我们遇到了同样的问题,并通过修改打印报告的代码解决了这个问题。 不要在设置报表参数之前设置CrystalReportViewerReportSource,而是在添加所有报表和子报表参数后设置。

      【讨论】:

        【解决方案4】:

        我只是用非常简单的方法解决了它,我不知道它是否适用于所有情况,但在我的情况下它确实有效。

        解决方案: 转到 CrystalReportViewer 的属性并设置 ReportSource=None

        【讨论】:

          【解决方案5】:

          使用以下步骤

          1. 不要使用 CrystalReportViewer1.RefreshReport 或 CrystalReportViewer1.Refresh
          2. 将报告来源从属性设置为无
          3. 必须动态分配报表源
          4. 在你的代码中有这个序列 REPORT1.Refresh() REPORT1.SetParameterValue(0, "some default value") 'assign some default value CrystalReportViewer1.ReportSource = REPORT1 'dynamically assigned report source

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2016-01-07
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2014-12-26
            相关资源
            最近更新 更多