Images in Picture Content Control

Images can be inserted into a Picture Content Control.

Note Icon

To be able to load pictures from the file system the scripting safe mode needs to be turned off.

This is not allowed in Therefore™ Online, so this feature can only be used in a very limited way.

Because there is no index data type in Therefore™ that can hold images it needs to be provided as a string.

The pictures should be base64 encoded and contain format information, similar to the HTML/CSS format.

This is a cut example of an image encoded that way:

data:image/png;base64,iVBORw0KGgoAA

Common image types like PNG, JPEG, GIF, BMP, and TIF are supported.

In the assignments, an image could either be provided via scripting or as a static string – see "Pic1" or directly as text "Pic2".

For loading an image file from a disk using scripting, a FileSystemObject is required. This object can only be created with the safe mode turned off.

Images can be assigned to the Body, as well as the Header and Footer of the document.

The image will fill the Content Control without changing its' aspect ratio. Unused space in the Content Control will be removed.