Last post Dec 19, 2009 06:25 PM by sheahhm
Sep 14, 2007 04:30 PM|water2003|LINK
Is there a way to simpley add an image (such as a logo) to reportVierer (RDLC)? I looket at the:
http://msdn2.microsoft.com/en-us/library/ms251715(VS.80).aspx. But I cannot follow what it says. Could anyone help me? Thanks a lot.
Sep 14, 2007 05:01 PM|dwhite|LINK
Have you trid these steps:
Open the client report definition (.rdlc) file in graphical design mode.
From the Report menu, select Embedded Images and add all of the images that you want to use in the report. If the Report menu is not available, click within the report design area.
Drag the image control from the toolbox to the report layout. You must use the image control that is used for ReportViewer reports.
Select the image and then open the Properties window in Visual Studio.
Set Source to Embedded.
Set Value to an image that is embedded in the report definition. You can choose which image to use from a drop-down list.
Sep 14, 2007 05:16 PM|water2003|LINK
I tried this. But in the image properties, I cannot find the "source". So I cannot do the step 5 "Set
Source to Embedded". Could you please tell me how to "Set
Source to Embedded"? Thanks
Sep 14, 2007 06:11 PM|dwhite|LINK
Are you using VS 2005 and SQL 2005? Looking at mine, there is an Image Report Item in the toolbox. When you drag it on to the report there is a Wizard that pops up and takes care of the hardwork for you
Sep 14, 2007 06:26 PM|water2003|LINK
I use VS2005 and SQL Server 2005. When I drag and drop the image control, there is no popup Wizard. What I can do is right click the image control and go to the properties. But in the properties, I cannot find anywhere to set the link to actual image.
Sep 17, 2007 06:04 AM|anamika_k|LINK
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.
Set the source as external and set the
value for external files as the virtual path to the image folder. ex:
Also enable external images in your aspx page
Remember to click "Mark as Answer" on the post that helped you
Jul 15, 2009 04:05 AM|Mike_Zandvliet_|LINK
Thanks anamika_k, I had the same problem and your explanation solved it for me.
I was looking at the properties dialog for the Image control by right mouse clicking on it and selecting Properties. The standard Visual Studio properties list was actually the one with the Source setting in it.
Dec 19, 2009 06:25 PM|sheahhm|LINK
Thanks a lot Damien. Your solution worked perfectly for me.