Make textobject bold based on condition in crystal report

China☆狼群 提交于 2019-12-25 02:44:58

问题


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.


回答1:


You should be able to:

  • Right-click the "Name" field
  • Select "Format Object"
  • Click the formula button next to "Style"

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.




回答2:


Try this

if Isnull(<<Databsefield Amount>>)
then crBold
Else crRegular


来源:https://stackoverflow.com/questions/22607927/make-textobject-bold-based-on-condition-in-crystal-report

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