在Crystal Reports中检索子报表的记录计数 [英] Retrieve record count of subreport in Crystal Reports

查看:122
本文介绍了在Crystal Reports中检索子报表的记录计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从主报表中检索子报表的记录计数?

How can I retrieve the record count of a subreport from within the main report?

推荐答案

,但我会回答。 :)

I think this is a dupe, but I'll answer anyway. :)

您可以在包含共享变量的子报表上创建公式字段。在公式中,您将共享变量设置为子报表中rowcount字段的值。

You can create a formula field on the subreport which contains a shared variable. In the formula you'll set the shared variable to the value of the rowcount field in the subreport.

然后在主报表中,您需要创建一个带有共享变量与子报表同名,然后返回共享变量的值。

Then in your main report you will need to create a formula with a shared variable that has the same name as the subreport and then return the value of the shared variable.

这里有一些可能有帮助的链接。
http://www.datamanagementgroup.com/Resources/TrainersTalk/trainerstalk_howto_share_subreport_data_with_main_report。 asp
http://www.ozgrid.com /forum/showthread.php?t=19034

Here are some links that may help. http://www.datamanagementgroup.com/Resources/TrainersTalk/trainerstalk_howto_share_subreport_data_with_main_report.asp http://www.ozgrid.com/forum/showthread.php?t=19034

这篇关于在Crystal Reports中检索子报表的记录计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆