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.

Adding dynamic images

Dynamic images can be added to the template using the Dynamic Image Script Wizard only if you have:

  • One or more data fields that contain values on the basis of which the images can be switched.
  • An appropriate image for each group of customers. All files should be of the same type and they need to be stored in one folder (the Images folder on the Resources pane, or an external folder). It is important that they are named after the various possible values of the related data field. Adding dynamic images that are not named after a data field value requires a self-made script.

To use the Dynamic Image Script Wizard:

  1. Add one image to the template. See Adding images.
  2. Right-click the image and click Dynamic Image. 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.

    The Dynamic Image Script Wizard composes a file name (including the path) based on the value of a data field, a prefix and a suffix:

    • The prefix shows the path of the image.
    • The suffix states the file extension of the image.
    • The file name is the value of the data field(s) in the Field column.

    The prefix and suffix are derived from the current image.

  3. If necessary, enter another Prefix and/or Suffix.
  4. Click the first field in the column Field, and then click the downward pointing arrow. Select the data field to be evaluated.

    Click the button Add, to add more fields if you want the file name to be composed of the value of several data fields. Note that only the suffix of the last data field should hold the file extension.

    The resulting file name, including the path and file extension, is assigned to the src (source) attribute of the image. You can click Options to verify this.

  5. Click Apply or OK. Now click the Preview tab and browse through the records to verify that the script works as expected.

The dynamic images feature can be used to insert dynamic signatures, as described in this how-to: Dynamic signatures.

How to insert dynamic images if there are no data fields with the actual names of the images is described in another how-to: Dynamic image that doesn't contain the data field value.

Editing a Dynamic Image

To edit dynamic images added to the template earlier, right-click the image, or the space reserved for the dynamic images. Then click Dynamic Image to open the Dynamic Image Script Wizard again.

 
  • Last Topic Update: 07:59 AM Dec-20-2016
  • Last Published: 2019-05-22 : 2:52 PM