将文件路径传递到 SSRS 中的值字段
我试图通过参数将图片的路径传递到图像框的值字段。代码是
文件:&参数!Pct.Value
Pct是一个参数,包含我的jpg文件的路径(字符串类型)。
但报告没有显示任何内容...... 请注意,当我将 File:D:\TV.jpg 放入值时,它可以工作,但是当我通过参数传递它时,我没有得到任何信息,
请告知。
I am trying to pass the path of my picture through a parameter to the Value filed of image box. The code is
File: & Parameters!Pct.Value
Pct is a parameter contains the path of my jpg file (string type).
But report is not showing anything......
Please note when I put File:D:\TV.jpg in value, it works but when I pass it through parameter, then I do not get anything
Please advise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是在报表设计器还是报表服务器中?如果您在报告发布后尝试查看图像,则需要设置无人值守执行帐户。该帐户应该有权访问该图像。您可以在 Reporting Services 配置管理器中找到此设置。 HTH。
Is this in Report Designer or Report Server? If you try to view the image after the report has been published, you need to set the Unattended Execution Account. This account should have permission to access the image. You can find this setting in Reporting Services Configuration Manager. HTH.
诀窍是 file://
现在您只需在表达式中写入即可将值传递到图像框的值字段
The trick is file://
Now you can pass the value to the value filed of image box simply writing in expression