SSRS: Report loading external images, image not found, can I hide the image control

Posted by Nauman on Stack Overflow See other posts from Stack Overflow or by Nauman
Published on 2010-04-22T07:05:44Z Indexed on 2010/04/23 4:53 UTC
Read the original article Hit count: 350

Filed under:
|
|
|

My SSRS report loads logo images for each customer from a customer number specific folder on the report server.

I write an expression, to form my URL to the image based on th customer number.

..."http://localhost/images/" + iCustomerNumber.ToString() + "/logo.gif"

I am able to get this working, but the problem I face is, when a particular customer doesn't has an image, then my report shows a red X mark in place of the logo. In this case, I expect to hide the image control itself. Any thoughts????

The other dirty solution will be to ensure that each customer specific folder has the designated image! even if there is no logo for a customer, I'll place a blank.gif or a spacer.gif of probably a square pixel in dimension!.

© Stack Overflow or respective owner

Related posts about ssrs

Related posts about image