使用Crystal Reports中的公式更改文本对象的颜色 [英] Change color of text object using formula in Crystal Reports
本文介绍了使用Crystal Reports中的公式更改文本对象的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用Crystal Report中的公式更改文本对象中文本的颜色。
我试过像
I want to change the color of the text in text object using formula in Crystal Report. I tried like
If {mnth_ttx.weight}>0 Then
crRed;
但颜色在运行时不会改变。
我在 weight 文本对象的公式编辑下写了这个条件。但不工作。
如何使用公式更改文本的颜色
But the color is not changing at run time. I wrote this condition under formula edit of weight text object. But not working. How to change the color of a text using formula
推荐答案
请按照以下步骤操作:
- 右键单击字段:选择
格式字段...
-
Font
标签,然后点击颜色选择器右侧的条件公式
按钮 - 输入此公式:
如果{mnth_ttx.weight}> 0然后crRed Else crBlack
- Right click field: select
Format Field...
- Select
Font
tab, then clickconditional-formula
button to the right of the color picker - Enter this formula:
If {mnth_ttx.weight}>0 Then crRed Else crBlack
这篇关于使用Crystal Reports中的公式更改文本对象的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文