How to add rows at runtime

怎甘沉沦 提交于 2019-12-24 11:08:09

问题


using crystal report 7

ID Value total

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

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

Expected Ouput

ID Value total subtotal

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

How to do it in crystal report.

Can any one give me a idea or formula help


回答1:


  • 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


来源:https://stackoverflow.com/questions/9953053/how-to-add-rows-at-runtime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!