在 Crystal Reports 中检索子报表的记录数 [英] Retrieve record count of subreport in 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. :)
您可以在包含共享变量的子报表上创建公式字段.在公式中,您将共享变量设置为子报表中行计数字段的值.
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.asphttp://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屋!