【问题标题】:Can I have another 2 groups in a group in crystal report?我可以在水晶报表中的一个组中再添加 2 个组吗?
【发布时间】:2014-02-12 14:35:49
【问题描述】:

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

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。

【问题讨论】:

    标签: crystal-reports crystal-reports-2008 crystal-reports-xi crystal-reports-8.5


    【解决方案1】:
    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
    

    【讨论】:

    • 感谢您的回复。我正在尝试创建公式,但我坚持制作它。请你给我一个关于如何做的提示。我将尝试理解并作为我解决这个项目的指南。谢谢。
    猜你喜欢
    • 1970-01-01
    • 2011-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多