如何在 Crystal Report XI 中禁用运行时参数提示?

问题描述 投票:0回答:3

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

crystal-reports
3个回答
0
投票

我们遇到了同样的问题,并通过修改打印报告的代码解决了这个问题。 不要在设置报表参数之前设置

ReportSource
CrystalReportViewer
,而是在添加所有报表和子报表参数后进行设置。


0
投票

我只是用一些非常简单的方法解决了它,我不知道它是否在所有情况下都有效,但就我而言它确实有效。

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


0
投票

使用以下步骤

  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
    
© www.soinside.com 2019 - 2024. All rights reserved.