Results 1 to 8 of 8

Thread: SQL Server 2005 Reporting Services

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: SQL Server 2005 Reporting Services

    What does the source of the page show the image's path as? Is it the right URI?

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  4. #4
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    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

  5. #5

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  6. #6

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  7. #7

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  8. #8
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    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
  •  



Click Here to Expand Forum to Full Width