all groups > sql server reporting services > october 2007 >
You're in the

sql server reporting services

group:

Image not displayed in report


Image not displayed in report Kirk
10/30/2007 12:00:00 AM
sql server reporting services: I am creating a very simple report in VS 2005. I dragged an image
control to the report surface and set it's value property to the
virtual path of my image (like "~/SubPage/Trademark.jpg"). However,
the image is never displayed - either at design time, when the report
viewer runs, or when the report is exported to PDF. I just get the
standard "No image" (red X) icon.

I have read other posts about this but most of them were trying to do
something more complicated than me. At this point, I am not trying to
do any logic for the visibility or the value it is trying to display.

I read about a bug that might be related here:

http://support.microsoft.com/kb/842537/

....but I am not sure if this pertains to me (as I am not pointing to a
URL, but rather a virtual path). I am leery of applying this SP2
patch, as there is no way to uninstall it, and I am not sure if it
will "break" anything that is currently working.

I would appreciate any suggestions that anyone could give me.
Thank you!
RE: Image not displayed in report Marie M.
10/30/2007 1:37:02 PM
Kirk,

Try embedding the image into the report instead of using the URL.

MM

[quoted text, click to view]
Re: Image not displayed in report Mónica
10/31/2007 12:00:00 AM
I´ve also tested what you say and it does not work with relative path.

To make it work, do what Marie says or use absolute URL
(http://www.yourpage.com/Subpage/Trademark.jpg)




"Kirk" <loki70@hotmail.com> escribió en el mensaje
news:1193753651.198915.166370@k79g2000hse.googlegroups.com...
[quoted text, click to view]

Re: Image not displayed in report Kirk
10/31/2007 12:00:00 AM
[quoted text, click to view]

Thanks for the replies. I used the absolute URL and that worked.

It's unfortunate that this does not work with a relative path.
Obviously, thing change (and move around on servers) and having to
update the application just to update absolute URL's is goofy. I
know, I know, you can add this as a configuration setting so that you
don't have to rebuild the site - I was just whining.

Thanks again!
AddThis Social Bookmark Button