2021.2

Table Of Contents
Dynamic images
Dynamic images are called dynamic because they are switched, depending on the value of a
data field. This way, a template can be adjusted to different customers.
This page describes how to insert dynamic images using the Dynamic Image Script Wizard.
Otherwise, adding dynamic images requires a self-made script (see "Writing your own scripts"
on page877, "template" on page1436 and "ImageResource" on page1441).
Adding dynamic images
Dynamic images can be added to the template using the Dynamic Image Script Wizard only if
you have:
l One or more data fields that contain values on the basis of which the images can be
switched.
l An appropriate image for each case. All files should be of the same type and they need to
be stored in the same location (the Images folder on the Resources pane, a folder on
disk, or online). It is important that they are named after the various possible values of the
related data field.
To use the Dynamic Image Script Wizard:
1. Add one image to the template. See "Adding images" on page729.
2. Right-click the image and click Dynamic Image. Or select the image and click Source
(not the field, but the label before the field) in the Attributes pane.
The Dynamic Image Script Wizard opens. The image's ID is used as the script's selector.
If the image did not have an ID, it is automatically generated.
3. Select the location of the files:
l Select Resources if the images reside in the Images folder on the Resources
pane.
l Folder on disk refers to a folder on a hard drive that is accessible from your
computer. Click the Browse button to select a folder.
As an alternative it is possible to enter the path manually. You can give a local path
(e.g. C:\Images\) or use the "file" protocol. The complete syntax of a fully qualified
URL with the "file" protocol is:file://<host>/<path>. Note: if the host
Page 823