Crystal Report: Display 0.00 for duplicate values

橙三吉。 提交于 2019-12-02 09:39:27

Do not check Suppress if Duplicated.. You need to write formula for Display String.

For example,

if PreviousIsNull ({object.field}) then 
  cstr({object.field})
else
if CurrentFieldValue=previous({object.field}) then 
   '0.00' 
else 
  cstr({object.field})

EDIT:

  if PreviousIsNull ({object.field}) then 
      cstr({object.field})
    else
    if {object.field}=previous({object.field}) then 
       '0.00' 
    else 
      cstr({object.field})

Right click on Field and click on Format Object Then click on Customize button Then there is a "Show zero value as" with dropdown to Default. Select that dropdown value to 0 instead of default.

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