错误:BC30201 IN ssrs

时间:2017-03-07 08:08:36

标签: visual-studio-2010 reporting-services

我正在

  

文本运行的值表达式   ' PAYEE_NAME.Paragraphs [0] .Textruns [0]'包含错误BC30201"为:

=iif(isnothing(First(Fields!PAYEE_NAME.Value, "AddressDetails")),"",(First(Fields!PAYEE_NAME.Value, "AddressDetails")+vbcrlf))+
iif(isnothing(First(Fields!ADDRESSLINE1.Value, "AddressDetails")),"",(First(Fields!ADDRESSLINE1.Value, "AddressDetails")))

但不是为了:

=replace(iif(isnothing(First(Fields!PAYEE_NAME.Value, "AddressDetails")),"",(First(Fields!PAYEE_NAME.Value, "AddressDetails")+vbcrlf))+
iif(isnothing(First(Fields!ADDRESSLINE1.Value, "AddressDetails")),"",(First(Fields!ADDRESSLINE1.Value, "AddressDetails")))
," ","")

为什么呢?我该如何解决这个问题?第二个表达式删除了单词之间的空格,我不需要这样做。我想要它,如果有收款人的收款人姓名然后显示它,如果没有去第二行并做同样的事。

0 个答案:

没有答案