|
-
Jan 23rd, 2006, 02:54 AM
#1
Thread Starter
Frenzied Member
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,
Don't anthropomorphize computers -- they hate it
-
Jan 23rd, 2006, 04:56 AM
#2
Re: SQL Server 2005 Reporting Services
What does the source of the page show the image's path as? Is it the right URI?
-
Jan 23rd, 2006, 11:43 AM
#3
Thread Starter
Frenzied Member
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.
Don't anthropomorphize computers -- they hate it
-
Jan 23rd, 2006, 12:27 PM
#4
Frenzied Member
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
-
Jan 23rd, 2006, 02:36 PM
#5
Thread Starter
Frenzied Member
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,
Don't anthropomorphize computers -- they hate it
-
Jan 23rd, 2006, 03:09 PM
#6
Thread Starter
Frenzied Member
Re: SQL Server 2005 Reporting Services
prefixing the path with file:\\\c:\4.bmp worked fine.
Thanks a lot.
Don't anthropomorphize computers -- they hate it
-
Jan 23rd, 2006, 03:09 PM
#7
Thread Starter
Frenzied Member
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?
Don't anthropomorphize computers -- they hate it
-
Jan 23rd, 2006, 03:12 PM
#8
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|