asp.net中的水晶报告 [英] crystal report in asp.net
问题描述
您好,
我正在使用Running Total处理Crystal Reports。如果总返回null或什么都没有,我希望该值显示为0
目前,当没有要计算的值时,它返回空白。
我如何检查Running total值是否为Null,如果是,则返回零。
请回复。
谢谢:)
你可以使用公式字段实现相同的目标。
看看这里的类似帖子:如果在运行总计中没有记录,如何显示零[<< a href =http://social.msdn.microsoft.com/Forums/ hu-HU / vscrystalreports / thread / e9adae15-326b-49e9-8778-e1015b42b609target =_ blanktitle =New Window> ^ ]
步骤说:
- 创建一个公式@IntField,如:
如果跨度>(ISNULL({表.intField}))然后
0
其他
{Table.intField}
- 现在创建一个新的运行总计字段。
- 在要汇总的字段中,选择公式字段@IntField。
- 现在将您的正在运行的总计放在报表页脚中。
- 如果IntField中的所有值都为null,则将显示0.00。 的
Hi there,
I am working on a Crystal Reports using Running Total. If the total return null or nothing, I want the value to appear as 0
Currently when there are no values to calculate, it returns blank.
How can I check if the Running total value is Null and if it is, just return zero.
Kindly reply.
Thank you :)
You can achieve the same using formula field .
Have a look at the similar thread here: How to display Zero if No records in Running Total[^]
Steps it says:
- Create a Formula @IntField like:
if(isnull({Table.intField})) then 0 else {Table.intField}
- Now Create a new running total field.
- In the Field to Summarize, select out Formula field @IntField.
- Now Place your Running total in the Report footer.
- If all the values in the IntField are null then 0.00 will be displayed.
这篇关于asp.net中的水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!