该怎么做才能显示“ - ”而不是rdlc报告中的空白值 [英] What to do to show a "-" instead of blank value in rdlc report
本文介绍了该怎么做才能显示“ - ”而不是rdlc报告中的空白值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我创建了一个名为CallLock.In的表,我保存了Call Lock number,Lock Date和Lock Time等字段的记录。表还包含一个字段,即Call Close Time。 />
当我使用一个UI保存记录时,数据被插入字段
1 - 呼叫锁定号码,
2-Lock Date,
3-Lock Time
和字段Call Close Time为空。
所以,我想显示一个 - 而不是这个空白字段在rdlc报告中。
任何人都有解决方案。请发送
解决方案
右键单击报告中的字段并选择 表达。将表达式设置为:
= IIf(Fields!CallCloseTime.Value Is Nothing, - ,Fields!CallCloseTime.Value)
Hello,
I had created table named CallLock.In that I saved records for fields like Call Lock number,Lock Date and Lock Time.Table contains one more field i.e Call Close Time.
When I saved record by using one UI,the data is inserted in fields
1-Call Lock number,
2-Lock Date,
3-Lock Time
and the field Call Close Time is blank.
So,I want to display a "-" instead of this blank field in rdlc report.
Anyone have a solution.Please send it
解决方案
Right-click on the field in your report and chose "Expression". Set the expression to:
=IIf(Fields!CallCloseTime.Value Is Nothing, "-", Fields!CallCloseTime.Value)
这篇关于该怎么做才能显示“ - ”而不是rdlc报告中的空白值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文