您的位置:首页 > 其它

How to add an image on reportViewer (rdlc)

2007-10-02 16:35 555 查看
Open the report in the Designer. In the ToolBox, select/expand the "Report Items" section. Drag an "Image" field/control onto the report.

Click on the image and press F4, the properties window pops up, under the group data you'll find source choose embeded. To embed images to your report choose report property on the menu (Click on the report if you can't see this), click on Report Images and choose the images you want to embed. Now, In the value property of your image choose the image. Embedded images are ok for small logo files, but for huge bmp files external images work better.

For external

Set the source as external and set the value for external files as the virtual path to the image folder. ex: http://servername/imagefoldername/imagename

Also enable external images in your aspx page

ReportViewer1.LocalReport.EnableExternalImages = True

reference to :
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2149066&SiteID=1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: