我需要计算并显示报告中分组数据的行数。我在报表页 footer 分已经有总数据的行数(我使用了 Count() 函数并且效果很好),但是我需要在显示分组数据行数的组页 footer 分有总行数。问题的可见解释如下所示。
谢谢。
----------------------------------------------------
Group 1
row 1---------------------------
row 2---------------------------
.
.
.
row N---------------------------
--- I need here number of rows!---------------------
----------------------------------------------------
Group 2
row 1---------------------------
row 2---------------------------
.
.
.
row M---------------------------
--- I need here number of rows!---------------------
----------------------------------------------------
Total Rows: M+N
最佳答案
尝试解决方案
@reset
.将公式放入 groupheader
和 supress
Shared Numbervar count;
count:=0
@ Increment
并放置在有 rows
的部分我已将其视为详细信息部分和 supress
.Shared Numbervar count;
count:=count+1;
count;
@Display
.将此公式放入 Group footer
共享 Numbervar 计数;
Shared Numbervar Count_Final;
Count_Final:=Count_Final+count;
数数;
@DisplayFinal
并放置在 Report Footer
Shared Numbervar Count_Final;
Count_Final
关于crystal-reports - 如何计算 Crystal 报表中分组的行数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24509119/