Crystal Reports - 禁止子报表参数提示(Crystal Reports - suppress subreport parameter prompts)

我在一个共同的领域有一个水晶报告与几个子报告链接 - 所有工作都很好。 现在必须添加另一个非常复杂的现有报告作为新子。 这份报告的数据源代码延伸了几页。 它还有十几个参数,这些参数进一步嵌入到众多公式领域中。 也就是说,它运行良好,并具有与主要报告链接的参数。 不幸的是,所有其他参数提示都非常烦人。

我已经搜索了一个方法来接受缺省值,但没有提示,但是Crystal似乎并没有考虑到这个概念。

修改报告以删除所有不需要的参数将是非常痛苦的,而不是一个选项。

我希望找到一种替代方法来传递参数值以防止提示。 我知道ReportDocument类的SetParameterValue()方法,但不知道如何使用它。 我找到了如何将它用于C#,VS,ASP.net等的例子,这些例子都不适用于像我这样的最终用户。

数据源命令本身可以使用吗?

非常感谢任何建议,指导或想法!

I have a Crystal report with several subreports linked on a common field - all working great. Now must add another, very complex, existing report as a new sub. This report's data source code stretches several pages. It also has over a dozen parameters which are further imbedded in numerous formula fields through out. That said, it runs fine and has a parameter that links with the main report. Unfortunately all the other parameter prompts is supremely annoying.

I've searched high and low for a method to accept default values without prompts but Crystal doesn't seem to accommodate that notion.

Revising the report to remove all the unneeded parameters would be extremely painful and simply not an option.

I'm hoping to find an alternate way to pass the parameter values to prevent the prompt. I'm aware of the SetParameterValue() method of the ReportDocument class but not sure how to use it. I've found examples of how to use it with C#, VS, ASP.net, etc., none of which work for an end user like myself.

Could the data source command itself be used?

Much thanks for any recommendations, guidance or thoughts!

最满意答案

使用命令级别提示时,您将永远无法使用CR查看器更改提示值。

如果报告应该在CR查看器中查看,并且需要功能或更改提示值,请尝试以下操作:

1)删除命令级别提示2)在字段资源管理器的报告中创建数据提示3)创建一个记录选择公式,如下所示:

{date_field} = {?Date_prompt}

在报告>选择公式>保存的数据下

4)用数据保存报告

尝试这个...

With Command Level prompts, you would never be able to change the prompt values with the CR Viewer.

If the report is supposed to be viewed in the CR Viewer and you need the functionality or changing prompt values, try this:

1) Remove Command Level prompts 2) Create the Data prompt in the report from the Field Explorer 3) Create a Record Selection formula like this:

{date_field} = {?Date_prompt}

under Report > Selection Formulas > Saved data

4) Save the report with data

Try this...

更多推荐