SQL Server 2005 Reporting Services
Hey,
I have a report that I designed using the SQL Server 2005 Reporting Services. I have a parameter that accepts a string which is a path to an image. I have an image control on the report and want to show the image based on the parameter value. The image control's source property is set to external and the value property to the parameter's value but when I open up the report during run time, the image doesn't show. Does anyone else experienced this before?
Thanks,
Re: SQL Server 2005 Reporting Services
What does the source of the page show the image's path as? Is it the right URI?
Re: SQL Server 2005 Reporting Services
it's just the path to the image. ex c:\4.bmp for testing. So during rendering, the parameter would read c:\4.bmp and that path is assigned as the value for the image control on the report. The source is set to external.
However, the image doesn't show up.
Re: SQL Server 2005 Reporting Services
I think mendhak is right. I just tried using a file - c:\temp\regex.jpg.
When I put c:\temp\regex.jpg as the value it doesn't work, but if I use file:///c:/temp/regex.jpg it does work.
Makes sense, of course, since you're running in a browser.
Mike
Re: SQL Server 2005 Reporting Services
I'm not running it in a browser. This is a .net 2005 application. I will try with the slashes.
Thanks,
Re: SQL Server 2005 Reporting Services
prefixing the path with file:\\\c:\4.bmp worked fine.
Thanks a lot.
Re: SQL Server 2005 Reporting Services
also, it seems to be working with both slashes / and \.
I'm assuming it doesn't matter which one you use, right?
Re: SQL Server 2005 Reporting Services
I guess you're using the report viewer then? I haven't used that yet, but I guess it behaves the same as a browser.
I guess if either / or \ works then either one is fine, I'd still prefer the forward slash because that's the normal convention.
Mike