Variable Image In Template Follow

0
Avatar
Legacy Poster

Hi, im having trouble figuring out how to use an image in a template in combination with a excel database. e.g. in a column i have the option image (image.png) or no image (cell is empty). How can i display the image when needed in the template? 

(the image i need to use is a hazard label when a certain product in the database is hazardhous or not.)

3 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Choose to use the data sourced picture object type, and then set the data source to be coming from a database field.  Choose the field that contains the file name, and be sure to also set the path option of where the picture files are actually located.  Be sure to have the final "/" at the end of the path.  For example:

 

C:\My Pictures/

0
Avatar
Legacy Poster
Comment actions Permalink

Thx, is there also a way to hide the image when empty (empty excell field) in the template layout field?
0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

If no image name is given then a picture will not print.  However, be sure to adjust the picture object error handling to be, "never abort print job".

Please sign in to leave a comment.