我创建了一个Report Viewer并向其发送了一个参数,但如果该参数为null,则显示#Error
。我试过这个:
=IIf(IsNothing(Parameters!frompay.Value),"Empty",FormatDateTime(Parameters!frompay.Value,DateFormat.ShortDate))
但问题仍然存在。
答案 0 :(得分:0)
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
执行IIf
和true
分支的both。
因此,false
会尝试将FormatDateTime(Parameters!frompay.Value,DateFormat.ShortDate)
/ null
格式化为日期(失败)。
您可能需要执行以下操作:
Nothing