通过图像路径在数据库中的 RDLC 报告上显示图像 [英] Show image on RDLC report from database by image path

查看:13
本文介绍了通过图像路径在数据库中的 RDLC 报告上显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图像路径存储在 SQL Server 2008 数据库中.在我的 RDLC 报告中,我有一个图像字段.我已设置此字段以从数据库中的数据库列获取图像路径.我还在报告查看器中将EnableExternalImages"属性设置为 true.我不知道我错过了什么,但我的报告显示的唯一图像"是红色标记.我错过了什么?

The image path is stored in the SQL Server 2008 database. On my RDLC report, I have a image field. I have set this field to get the image path from the database column in the database. I also have set in the report viewer the "EnableExternalImages" property to true. I don't know what I am missing, but the only "image" my report shows is the red mark. What am I missing?

推荐答案

问题是我确实把报表上图片控件的图片源属性设置为database",不对.因为图像没有保存在数据库中,而只有它的路径.所以我把它改成了外部"和 walah!它就像一个魅力.谢谢大家的帮助.

The problem was that I did set the image source property of the image control on the report to "database", which is incorrect. Because the image is not saved in the database, but only the path to it. So I changed it to "External" and walah! It works like a charm. Thank you all for your help.

这篇关于通过图像路径在数据库中的 RDLC 报告上显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆