Data Sources With Images S’abonner

0
Avatar
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.
 
Example:
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.

1 commentaires

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

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.

Vous devez vous connecter pour laisser un commentaire.