Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services SSRS 2008 R2检查报表服务器上是否存在外部映像_Reporting Services_Ssrs 2008_Ssrs 2008 R2 - Fatal编程技术网

Reporting services SSRS 2008 R2检查报表服务器上是否存在外部映像

Reporting services SSRS 2008 R2检查报表服务器上是否存在外部映像,reporting-services,ssrs-2008,ssrs-2008-r2,Reporting Services,Ssrs 2008,Ssrs 2008 R2,我正在编写SSRS2008R2报告,并动态显示图像。我想隐藏图像框并显示一个带有文本的图标,如果我们的报表服务器上不存在图像,则该图标将读取“未找到图像” 我已经尝试了一些关于表达式的方法,但是我不能让它们根据图像是否存在正确地返回true或false 我用来显示图像的表达式是: =/BusinessIntelligence/Drilldown Reports/+字段!item.Value+.jpg 为了测试是否可以让报告检测图像是否存在,我将一个文本框拖到报告上,并尝试使用以下表达式来返回Tr

我正在编写SSRS2008R2报告,并动态显示图像。我想隐藏图像框并显示一个带有文本的图标,如果我们的报表服务器上不存在图像,则该图标将读取“未找到图像”

我已经尝试了一些关于表达式的方法,但是我不能让它们根据图像是否存在正确地返回true或false

我用来显示图像的表达式是:

=/BusinessIntelligence/Drilldown Reports/+字段!item.Value+.jpg

为了测试是否可以让报告检测图像是否存在,我将一个文本框拖到报告上,并尝试使用以下表达式来返回True或False

=IIfIsNothing/BusinessIntelligence/Drilldown Reports/+字段!item.Value+.jpg,呜呼!,不要!即使图像存在,也始终返回False

我甚至尝试使用我找到的一些自定义代码

代码:

我在代码中使用的表达式是:

=IIf(Code.IsValid("/BusinessIntelligence/Drilldown Reports/" + Fields!item.Value + ".jpg"), "Woohoo!", "Do'h!")

但这也总是返回false。

好的,我需要这个,谢谢

这里的错误是您正在为网页IsValue使用保留字。将您的函数名更改为IsThere,它的工作应该非常出色

可能重复的
=IIf(Code.IsValid("/BusinessIntelligence/Drilldown Reports/" + Fields!item.Value + ".jpg"), "Woohoo!", "Do'h!")