简体   繁体   中英

Make textobject bold based on condition in crystal report

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.

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.

在此处输入图片说明

Try this

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM