【问题标题】:Crystal Report Group Amount total in Report Foooter报表页脚中的水晶报表组总金额
【发布时间】:2015-08-10 09:22:04
【问题描述】:

有一家公司有 5 种货币

EUR  
GBP  
PKR  
AED  
USD  

我在每个货币之后插入了一组 w.r.t 货币及其显示货币总数

我想在报告页脚中显示每种货币的总计。我试图用一组货币插入余额金额的摘要,但它只显示最后一种货币的总和,在我的例子中是美元。

有没有办法像这样在报告页脚中发布每种货币总额

**PKR Total   Amount  
**EUR Total   Amount  
**AED Total   Amount  
**GBP Total   Amount  
**USD Total   Amount 

【问题讨论】:

    标签: crystal-reports


    【解决方案1】:

    你可以

    创建这5个公式

    (if {Tablename with currency code} = "PKR" then  {table with Balance})  
    (if {Tablename with currency code} = "USD" then  {table with Balance})  
    (if {Tablename with currency code} = "GBP" then  {table with Balance})   
    (if {Tablename with currency code} = "AED" then  {table with Balance})   
    (if {Tablename with currency code} = "EUR" then  {table with Balance})  
    

    在报告页脚总结这个公式

    【讨论】:

      【解决方案2】:
      【解决方案3】:

      简单的方法是将摘要存储在数组中并显示在报告页脚中。

      按照以下流程:

      创建一个公式@Concat 并将其放在摘要之后的组页脚中。

      Shared StringVar Store;
      
      Store:=Store+ToText(Sum ({Tablename.currency}, {Tablename.currency})
      

      这会将当前添加到变量存储中。

      现在创建与您的货币一样多的公式并编写以下代码:

      公式@1

      Shared StringVar Store;    // This will give you first value
      Store[1]
      

      以与Store[2] //for second value 相同的方式为所有值创建并到最后并显示在报告页脚中

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-10-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多