根据水晶报表中的条件使文本对象变为粗体 [英] Make textobject bold based on condition in crystal report
本文介绍了根据水晶报表中的条件使文本对象变为粗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的水晶报表中,有两列 Name
和 Amount
.我想要的是如果 Amount
为空白,则 Name
必须为粗体,否则将使用常规字体.我不知道如何为这种情况写公式.任何帮助,将不胜感激.谢谢.
In my crystal report, there are two columns Name
and Amount
. What i want is if Amount
is blank then Name
must be bold otherwise it will be in regular font. I don't know how to write formula for this condition. any help would be appreciated. Thanks.
推荐答案
您应该能够:
- 右键单击名称"字段
- 选择格式化对象"
- 点击样式"旁边的公式按钮
如果您的 Amount 字段是一个数字(可能是,但是您使用了短语"is blank"),则将其与0而不是空字符串进行比较.
If your Amount field is a number (probably is, but you used the phrase "is blank"), then compare it to 0 instead of an empty string.
这篇关于根据水晶报表中的条件使文本对象变为粗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文