如何在运行时添加行 [英] How to add rows at runtime

查看:114
本文介绍了如何在运行时添加行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用水晶报告7

ID Value total

001 100 2000
002 300 1000
003 300 1000
......



在第2行(第1 +第2行)后的运行时添加一个附加行。

i want to add one more additional row at runtime after 2nd row (1st + 2nd row).

预期输出

ID Value total subtotal

001 100 2000 (a)
002 300 1000 (b)
123 400 3000 (total of a & b)
003 300 1000 (c)
......

如何在水晶报告中做。

任何人可以给我一个想法或公式帮助

Can any one give me a idea or formula help

推荐答案


  • 创建一个new formula field: if recordnumber in [1,2] then 1 else 2;

  • 使用此公式创建群组

  • 取消组头

  • 有条件地使用公式 recordnumber> 2

  • 将您的总字段添加到组页脚

    • Create a new formula field: if recordnumber in [1,2] then 1 else 2;
    • Create a group using this formula
    • Suppress the group header
    • Conditionally suppress the group footer using formula recordnumber > 2
    • Add your total fields to the group footer
    • 这篇关于如何在运行时添加行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆