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.
Author |
Topic |
Miguel.Gonzalez
Starting Member
1 Post |
Posted - 2010-01-26 : 11:38:16
|
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...I already asked this same question in another forum but haven't got any answer yet.Thanks in advance for your help.Miguel Gonzalez. |
|
|
|
|