如何在水晶报表中添加两个字段 [英] how to add two fields in crystal report
本文介绍了如何在水晶报表中添加两个字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在制作水晶报道,我有3个字段
Hi guys,
I'm working on crystal reports, where i have 3 fields
| bill amount
------|----------------
bill1 | 10
bill2 | 20
bill3 | 30
------|----------------
total | ??
我想将这些账单1-3添加为总额。
任何人都可以帮助我,
谢谢
I want to add these bill 1-3 as total.
Can anybody plz help me,
Thanks
推荐答案
使用摘要字段 [ ^ ]
添加公式< br $> b $ b
n选择你的字段,不要忘记解析它
例如。代码
Add Formula
n select your fields, do not forget to parse it
eg. code
tonumber({sp_getCostList_rpt;1.Bill1}) +
tonumber({sp_getCostList_rpt;1.Bill2}) +
tonumber({sp_getCostList_rpt;1.Bill3}) +
tonumber({sp_getCostList_rpt;1.Bill4}) +
tonumber({sp_getCostList_rpt;1.Bill5}) +
tonumber({sp_getCostList_rpt;1.Bill6})
n保存,
n save it,
您好,
使用晶体报告中的交叉表。右键单击 - >插入 - >交叉表
并相应地添加列和行。您也可以使用金额总计。
Hi,
Use Cross-Tab in crystal report. Right Click -> Insert -> Cross-Tab
and Add Columns and rows accordingly. You also can use Amount Total.
这篇关于如何在水晶报表中添加两个字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文