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
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
相关文章推荐
- ReportViewer export to pdf header image (RDL/RDLC)
- How To Add a New Disk(s) to An Existing Diskgroup on RAC (Best Practices).
- How to get the RGB values for a pixel on an image on the iphone
- i.MX Yocto Project: How do I add an existing package to an image?
- How to add an editable checkbox at JFace TableViewer
- ASP.NET: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. on Win7 64bit
- Impossible to load an image in xcassets on bundle
- How to Register an ActiveX DLL on Vista with regsvr32
- 如何挂载一个镜像文件(how to mount an image file)
- How can I add properties to an object at runtime?
- How to Get an Android Device Image?
- 1、How to add an access-allowed ACE to a file
- How do I add an integer value with javascript (jquery) to a value that's returning a string?
- How Can I Minimize a VI to an Icon on the Windows System Tray?
- How to render client report definition files (.rdlc) directly to the Response stream without preview(转)
- How to draw a shape on top of a UIImage while respecting the image's alpha mask
- 如何挂载一个镜像文件(how to mount an image file)
- How to center an image?
- iPhone - How to send image + text on facebook using sharekit
- [旧稿]How To Add Simple "Install WebPart" Menu to the Right Click On a CAB File