1

在 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,它似乎没有什么区别。

4

2 回答 2

1

使其成为绝对 URL 而不是相对 URL。例如,而不是 image2.png 返回http://myhost.com/image2.png或 file://C:/test/myimage.png

于 2009-01-28T04:52:32.963 回答
1

我使用嵌入式图像并在某些地方使用表达式来确定它们如何显示并且从未遇到过问题。

  • 您是否通过Report > Embedded Images > New Image将图像添加到报告中?
  • 然后当您将图像控件添加到报表时,选择Embedded Image ?
于 2009-01-28T12:53:03.570 回答