This section describes the image template element, which
can be used to display graphics in your report.
About this task
Note: IBM Engineering Lifecycle Optimization - Publishing and Document Studio support different sets of
image formats depending on the output format that the template is generated into. Some images
supported by the PUB Engine, such as .emf or
.wmf, might not render correctly in the Document Studio
editor. These elements show as Image cannot be rendered. To
distinguish the elements that have an .emf or .wmf image
attached, you are given this visual indication. Though you might see this message,
Image cannot be rendered, in the Document Studio
template editor, the output that is created with that template renders the image properly.
Procedure
- In the Palette view, select an
Image element
and drag it into the template content editor.
- Right-click the image element and click .
-
Select an image from your computer or a remote location.
- Click OK. The image is inserted
and a preview is visible in the template.
- Click the Save icon to save your
changes.
-
To add a hyperlink to an image, go to the Properties view. On the Specific tab, enter a link in
the Hyperlink field.
- To add a clickable region to an image, go to the Properties view. On the Specific tab,
click Image map field. Enter an HTML snippet in Simple
Value tab or assign a variable or attribute in Data Expression
tab or JavaScript in Script Expression tab.
For example:
<map>
<area shape="rect" coords="0,0,82,126" href="https://www.google.com" alt="Google link"/>
<area shape="circle" coords="90,58,3" href="http://ibm.com" alt="IBM link"/>
</map>
For more information on usage of simple value, Data expression, or Script Expression,
see Setting how data is formatted and calculated.
Results
By design, only the first line of content that is entered for elements that use the
Content property displays in the template content editor. Subsequent lines of
text are hidden so that the template designer can focus on the structure of the template at a given
time rather than the content of individual elements.