同一报告中记录的摘要和详细信息部分

时间:2014-10-31 14:09:13

标签: crystal-reports crystal-reports-2008 crystal-reports-2010

我有如下表格

ParkingLot   Vehicle  City   Two/Four   Owner   Date        Fee
p1           v1       c1     Two        xxx     01-OCT-14   10
p1           v1       c1     Two        yyy     01-OCT-14   11
p1           v1       c1     Four       zzz     01-OCT-14   12
p1           v1       c2     Two        aaa     01-OCT-14   13
p1           v1       c2     Two        yyy     01-OCT-14   11
p1           v1       c2     Four       ddd     01-OCT-14   18
p1           v2       c1     Two        fff     01-OCT-14   20
p1           v2       c1     Two        yyy     01-OCT-14   10
p1           v2       c1     Four       hhh     01-OCT-14   10
p1           v2       c2     Two        xxx     01-OCT-14   54
p1           v2       c2     Two        iii     01-OCT-14   10
p1           v2       c2     Four       zzz     01-OCT-14   66
p1           v1       c1     Two        xxx     02-OCT-14   66
p1           v1       c1     Two        yyy     02-OCT-14   2
p1           v1       c1     Four       zzz     02-OCT-14   44
p1           v1       c2     Two        aaa     02-OCT-14   11
p1           v1       c2     Two        yyy     02-OCT-14   11
p1           v1       c2     Four       ddd     02-OCT-14   18
p1           v2       c1     Two        fff     02-OCT-14   44
p1           v2       c1     Two        yyy     02-OCT-14   10
p1           v2       c1     Four       hhh     02-OCT-14   88
p1           v2       c2     Two        xxx     02-OCT-14   54
p1           v2       c2     Two        iii     02-OCT-14   10
p1           v2       c2     Four       zzz     02-OCT-14   33
..........

我在Crystal报告中需要以下格式显示的数据

SUMMARY
P1

v1
ParkingLot   Vehicle  City   01-OCT-14    02-OCT-14
p1           v1       c1     33           112
p1           v1       c2     42           40
p1           v1    Total     66           152

v2
ParkingLot   Vehicle  City   01-OCT-14    02-OCT-14
p1           v2       c1     40           142
p1           v2       c2     130          97
p1           v2    Total     170          239

DETAILS
v1
ParkingLot   Vehicle  City   Two/Four   Owner   01-OCT-14   02-OCT-14
p1           v1       c1     Two        xxx     10          66
p1           v1       c1     Two        yyy     11          2
p1           v1       c1     Two        Total   21          68
p1           v1       c1     Four       zzz     12          44
p1           v1       c1     Four       Total   12          44
p1           v1       c1     ALL        Total   33          112

p1           v1       c2     Two        aaa     13          11
p1           v1       c2     Two        yyy     11          11
p1           v1       c2     Two        Total   24          22
p1           v1       c2     Four       ddd     18          18
p1           v1       c2     Four       Total   18          18
p1           v1       c1     ALL        Total   42          40

p1           v1       ALL    ALL        Total   66          152


v2
ParkingLot   Vehicle  City   Two/Four   Owner   01-OCT-14   02-OCT-14
p1           v2       c1     Two        fff     20          44
p1           v2       c1     Two        yyy     10          10
p1           v2       c1     Two        Total   30          54
p1           v2       c1     Four       hhh     10          88
p1           v2       c1     Four       Total   10          88
p1           v2       c1     ALL        Total   40          142

p1           v2       c2     Two        xxx     54          54
p1           v2       c2     Two        iii     10          10
p1           v2       c2     Two        Total   64          64
p1           v2       c2     Four       zzz     66          33
p1           v2       c2     Four       Total   66          33
p1           v2       c2     ALL        Total   130         97

p1           v2       ALL    ALL        Total   170         239

首先,通过制作详细的子报告部分以及摘要的主要报告尝试了。 我成功地得到了没有交叉标签的预期结果...

但是因为有很多p1,p2,p3 ......它会为P的每个细节都调用subport 它会对性能产生影响......

请告诉我如何在单个报告中执行此操作,并使用交叉标记

提前致谢

1 个答案:

答案 0 :(得分:0)

使用相同的想法制作子报告的详细信息部分和主要报告的摘要,但在您的子报表上创建Vehicle即使您拥有数百种不同的车辆,您也会获得所需的结果。该子报告将放在report footer上,因此会在您的summary

之后显示