1

我有一个像这样执行和输出的存储过程,

Plant1     Top1       12
Plant1     Bottom1    12
Plant1     Top2       14
Plant1     Bottom12   14
Plant2     Top1       34
Plant2     Bottom1    34
Plant2     Top2       18
Plant2     Bottom12   18

我希望它在水晶报表中像这样显示。

Plant1
   Top
     Top1        12
     Top2        14
   Bottom
      Bottom1    12
      Bottom1    14

Plant2
   Top
     Top1        34
     Top2        18
   Bottom
      Bottom1    34
      Bottom1    18

我正在考虑通过包装厂对其进行分组,然后将其再次分组以实现这种输出。有人可以帮助我,请。

顺便说一句,我正在使用 Crystal Report 9。

4

1 回答 1

0
1) Create two groups.
2) Group one is based on the Plant1, Plant2, Plant3 etc
3) Create a formula filed, that checks your second field and output either Top, Bottom.
4) Now, Group 2 is based on your Formula (Bottom, Top)

Order:
Group 1 => Display Plant Stuff (In Group Header)
Group 2 => Display Location stuff (In Group Header)
Detail => Display the records
于 2012-12-26T10:11:02.627 回答