Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

variably changing images that display in SSRS

$
0
0
Hello. In the visibility tab of Image properties I have used a switch statement:=SWITCH (Parameters!Site.Value = "Website1", "file1", Parameters!Site.Value = "Website2", "file2", Parameters!Site.Value = "Website3", "file3", Parameters!Site.Value = "Website", "file4", Parameters!Site.Value = "Website5", "file5", Parameters!Site.Value = "Website6", "file6", )Have alternately used an IIF statement:=IIF (Parameters!Site.Value = "Website1", "file1", Parameters!Site.Value = "Website2", "file2", Parameters!Site.Value = "Website3", "file3", Parameters!Site.Value = "Website", "file4", Parameters!Site.Value = "Website5", "file5", Parameters!Site.Value = "Website6", "file6", )But each time I get the following error:The hidden expression used in image 'Image 1' returned a data type that is not valid.The images themselves are in a folder on my local drive, same drive as BIDS 2008 is running on. I have tried the above statement against both external and embedded images. ie. imported them once by pulling them into my Reports as 'existing items' (r-click on Reports>add existing item>navigate to jpg file>OK). This is considered an external image source. I have also uploaded the images into the Report Data section of my report as 'images' (r-click Images>Add Image>navigate to local folder>open). This is considered embedded image source.Either way neither the SWITCH nor IIF statements have any effect on the image returned to the report during Preview. Desired outcome is that depending on the value entered for the parameter, the appropriate logo is loaded.Can someone explain procedure for variably loading images and or provide additional links?

Viewing all articles
Browse latest Browse all 2791

Trending Articles