如何显示从数据库到RDLC的图像 [英] How to show image from database to RDLC

查看:103
本文介绍了如何显示从数据库到RDLC的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我在创建报表(RDLC)时将图像路径存储在数据库(Sql Server)中,然后我想将此图像用作报表中的徽标.
因此,我创建了一个存储过程,该过程将返回图像的路径值,然后在报告中拖动图像控件并将其属性值设置为tableAdapter的字段.
e.s.

image1.Value = First(Fields!HtlLogo.Value,"PrintVoucher_PrintConfirmation").
但是它可以显示图像.我如何解决此问题,请告诉我是否有人有解决方案.

提前谢谢.
问候.
dEV kASHYAP

Hello everybody,
I am storing image path in my database (Sql Server), when i am creating report (RDLC), then i want to use this image as a logo in my report.
So i created a store procedure, who is returning me the path value of image, then in report i drag a image control and set his property value to the tableAdapter''s field.
e.s.

image1.Value = First(Fields!HtlLogo.Value, "PrintVoucher_PrintConfirmation").
But it is enable to show image. How i can solve this problem, tell me if anybody have any solution.

Thanks in advance.
Regard.
dEV kASHYAP

推荐答案

引用这些链接可能会对您有所帮助

如何在RDLC上显示数据库中的图像 [ ^ ]

http://satishjdotnet.blogspot.in/2009/03/external- images-in-rdlc-reports-aspnet.html [ ^ ]
Refer these links may help you

how to display image from database on RDLC[^]

http://satishjdotnet.blogspot.in/2009/03/external-images-in-rdlc-reports-aspnet.html[^]


这篇关于如何显示从数据库到RDLC的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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