SSRS隐藏带表达式的图像在标题中不起作用

时间:2016-02-03 10:10:32

标签: image visual-studio-2008 reporting-services ssrs-2008

我是SSRS的新手,我已经找到了我的第一个大问题。 我需要制作一个包含人们所有个人信息的页面。 但我需要在标题中添加图像。 如果这个人没有自己的照片,我会拍一张头像。 所以我隐藏了图片picturebox en show avatar picturebox。

Design of the Images

Result when no profile picture found

但是当我在标题中的pbox中预览SSRS时出现错误:

  

图片'Picture'的隐藏表达式包含错误:请求类型'System.Security.Permissions.SecurityPermission,mscorlib,Version = 2.0.0.0,Culture = neutral,PublicKeyToken:b77a5c561934e089'的权限失败。< / p>

如果我将图像移出标题,它就会起作用......

所以这是我用来隐藏图像的代码。

=IIf((First(Fields!found.Value, "DataSet4") = "TRUE"), True, False)
=IIf((First(Fields!found.Value, "DataSet4") = "FALSE"), True, False)
  

发现只包含“TRUE”或“FALSE”

或者是否可以隐藏页面标题中的项目?

0 个答案:

没有答案