检查RDLC中的参数是否为空

时间:2017-11-23 11:19:16

标签: c# rdlc

我创建了一个Report Viewer并向其发送了一个参数,但如果该参数为null,则显示#Error。我试过这个:

 =IIf(IsNothing(Parameters!frompay.Value),"Empty",FormatDateTime(Parameters!frompay.Value,DateFormat.ShortDate))

但问题仍然存在。

1 个答案:

答案 0 :(得分:0)

docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") 执行IIftrue分支的both

因此,false会尝试将FormatDateTime(Parameters!frompay.Value,DateFormat.ShortDate) / null格式化为日期(失败)。

您可能需要执行以下操作:

Nothing