我有一个执行和输出的存储过程,
Plant1 Top1 12
Plant1 Bottom1 12
Plant1 Top2 14
Plant1 Bottom12 14
Plant2 Top1 34
Plant2 Bottom1 34
Plant2 Top2 18
Plant2 Bottom12 18
我希望它在Crystal Report中以这样的方式显示。
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。
答案 0 :(得分: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