2.2

PrintShop Web Designer Guide | 25
Variable images
The Newsletter document contains a variable image. Based on the customers interest a specific photo
is printed. This document makes use of four different images:
Paris
Barcelona
Amsterdam
Sydney
As stated the images are printed by the holiday preferences of a customer. When a customer visited
Paris, a picture of Paris will be printed. When he visited Sydney, a picture of Sydney is printed. The
information comes from the database field Location. Scroll through the records and you will notice that
the variable image will change.
Connecting variable images to the database information can be done in a few easy steps. We have
created an image box using the Image box tool. This will automatically create a variable called Image 1
(Variables pane). Double click this variable to open the expression builder. Below you can see how the
data of Location field is used to define the name of the image.
Change the Source option to User Input in the Properties pane
Once you have setup the expression you will need to define the location of the images. Select the
image box in the layout and click the Image folder option in the Properties pane. Browse for the folder
containing the images and click OK.
Note: If you are using images that are based upon conditions, and these conditions determine
that the image should not be displayed (empty file name as result), a notification will be included
in the preflight data for each empty image. The notification displayed is this No image specified.
In order to avoid this you may want to use a transparent image as alternative for the empty file
name.