Data Sources With Images Follow

Legacy Poster

Can anyone assist with the below scenario?
I'd like to add a local image to a label (to be used as a header), but the file to be used should be dependant on the prefix of a field type.
Product Type A Ref: AA123456
Product Type B Ref: BB123456
Product Type C Ref: CC123456
Image output displays X, Y, Z depending on the prefix of the Reference.
Hope that makes sense.
Thanks in advance.


Ian Cummings
Comment actions Permalink

Set the image to be data sourced and specify the path to where the images are to be found.  Set the data source of the image object to be a VB script, and then use an If...Then or Switch...Case statement to set the value of the image to the appropriate image file name based on the value of the prefix value.

Please sign in to leave a comment.