我想在我的报告中显示图像,我将图像路径保存在我的 sqlserver 数据库中,现在我想从路径加载图像。我搜索整个互联网并尝试所有指导,我首先将图像插入到我的报告中,然后之后我去>Format Editor > picture > Graphic Location >
并将图像路径插入文本区域,如下所示{Command.path}
但当我运行时,它不显示任何图片。现在我该怎么办?
我使用 Visual Studio 2013 和最新版本的 Crystal Report 。
使用条件公式动态更改报表图像的位置。
-
将图像添加到报告中:-> Insert
-> Picture
该图像将充当占位符。
确保占位符的大小与动态加载的占位符的大小相同,否则图像将被缩放。
-
更改图像的图形位置:
-> right click image
-> select Format Graphic…
-> select Picture tab
-> click the conditional-formula button (looks like x+2)
-> set the formula’s text to the name of the formula or parameter field that will contain the image’s URL
-> save the formula and click the OK button
-> save the report
这对我有用。
资料来源:cogniza.com
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)