如果在水晶报告中有其他条件 [英] If else condition in crystal report

查看:82
本文介绍了如果在水晶报告中有其他条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys,我在我的水晶报告中遇到一个新问题是我想要coloumn1值== 0所以货币符号没有显示但是如果有值那么货币符号显示在报告中请告诉我我该怎么办它



我尝试过:



Hello Guys,i am facing a new problem in my crystal report is that i want if coloumn1 value == 0 so currency symbol is not showing but if is there value so currency symbol show in report please tell me how can i do it

What I have tried:

if{RECEIPT.Column1} = "0" then
CurrencySymbol = "";
else{CurrencySymbol = "Rs"}

推荐答案

1.右键单击报告中受影响的字段

2.选择格式字段

3.在数字选项卡上,单击自定义

4.选中显示货币符号复选框,然后选择位置和所需在您的情况下货币符号是Rs

5.选择固定或浮动设置(如下所述)

6.单击确定



和数字选项卡中有选项可以抑制零,只需选中它就可以压制零。
1.Right-click on the affected field on the report
2.Select Format Field
3.On the Number tab, click Customize
4.Mark the Display Currency Symbol checkbox and select the position and required currency symbol in your case it is "Rs"
5.Choose either Fixed or Floating setting (described below)
6.Click OK

and also in Number tab there is option to suppress zero just checked it to suppress Zero.


这篇关于如果在水晶报告中有其他条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆