I Hide/Show an image based on the existence or not of that image. If the image exists, then I show the image the report has to show. If the image does not exist, then I show a default image. Think of it as an eCommerce web site which shows a catalogue of products. If we do have a picture for that product, then we show the product's picture. If we do not have a picture for that product, then we show a default images that says image not available.
To achieve this, I tried to use System.IO.File.Exists("image path") in the Hidden property of the image field but it does not work.
I thought it could be the due to the location of the image but I also moved the image to my local machine where I am designing this report and it still fails.
I created a very simple console project just to see if the library works and it does, when I run the code on a console application, it perfectly works, it returns True.
I also modified rssrvpolicy.config changing all PermissionSetName to FullTrust and still nothing.
I will really appreciate any possible solution, links, ideas, comments...
Thanks in advance for your help.
View Complete Post