报表查看器 - 将任何 0 值转换为显示空白或空值
Report Viewer - convert any 0 value to display blank or null value
如何使任何 0 值显示为空白或空值?
我可以在报表查看器中做一个条件表达式吗
更新:这是我尝试过的
=IIf(FormatNumber(Fields!totalnetamaount.Value, 2) is 0, "", FormatNumber(Fields!totalnetamaount.Value, 2))
抛出了异常
Error 1 The Value expression for the textrun
‘totalnetamaount.Paragraphs[0].TextRuns[0]’ contains an error:
[BC30020] 'Is' operator does not accept operands of type 'Integer'.
Operands must be reference or nullable
types.
将您的 "is" 替换为“=”。
修改您的条件如下,
=IIf(FormatNumber(Fields!totalnetamaount.Value, 2)=0, "", FormatNumber(Fields!totalnetamaount.Value, 2))
如何使任何 0 值显示为空白或空值? 我可以在报表查看器中做一个条件表达式吗
更新:这是我尝试过的
=IIf(FormatNumber(Fields!totalnetamaount.Value, 2) is 0, "", FormatNumber(Fields!totalnetamaount.Value, 2))
抛出了异常
Error 1 The Value expression for the textrun ‘totalnetamaount.Paragraphs[0].TextRuns[0]’ contains an error: [BC30020] 'Is' operator does not accept operands of type 'Integer'. Operands must be reference or nullable types.
将您的 "is" 替换为“=”。 修改您的条件如下,
=IIf(FormatNumber(Fields!totalnetamaount.Value, 2)=0, "", FormatNumber(Fields!totalnetamaount.Value, 2))