Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Remote image exists ?

Author  Topic 

gispro
Starting Member

21 Posts

Posted - 2007-08-20 : 05:53:30
I'm displaying images on a remote server in my reports, using an image tag (IMG) in the report, which calls a parameterized script (php) to stream the image back. This works perfectly.

However, sometimes the requested image doesn't exist, and instead of returning and displaying a dummy "not found" image, I would like to hide/collapse the whole image section of the report. But since it's the browser that evaluates and displays the image, not RS, I'm kinda stuck.

Is there a way to have RS fetch the image in advance, or at least have it call a script and test the returned result, prior to delivering the report to the browser ? I've built a script to return the text "0" or "1", signalling existence of the image, but how do I get RS to evaluate the url and test the returned value ?


--
GisPro

gispro
Starting Member

21 Posts

Posted - 2007-08-22 : 03:07:32
I'll clarify my question a bit, as it's not as such a question about images.

I'm interested in knowing whether it's possible to embed a function/object in a report, which fetches some web resource, and makes it possible (in RS) to query what is returned, before the report is sent to the browser. E.g. an ActiveX component ...

--
GisPro
Go to Top of Page
   

- Advertisement -