在 SSRS 报告中:
我使用表达式指定页脚的背景图像,以便第一页上的图像与其他页面不同。
图像存储为项目的一部分,并且显示正确,但是我收到此警告
Build complete -- 0 errors, 0 warnings
[rsInvalidImageReference] The Value for the page ‘footer’ is invalid.
Details: Invalid URI: The format of the URI could not be determined.
Preview complete -- 0 errors, 1 warnings
任何人都知道是什么导致了这个警告,我应该如何摆脱它?
编辑:是否可以这样做,并避免使用绝对路径?我需要在项目中使用相对路径,因为我无法控制将其推广到哪里。
我用来为 Footer/BackgroundImage/Value 属性选择图像的表达式是:
= IIf(Globals!PageNumber.Equals(1), "image1.png", "image2.png")
此外,我尝试将 BackgroundImage Source 和 MIMEType 设置为 external 和 image/png,它似乎没有什么区别。