Previous Next

Laying Out a Report : How to insert a linked image

How to insert a linked image

1
Drag the image element from the palette, and drop it in the desired location on the page. Edit Image Item appears, as shown in Figure 5‑2.

Figure 5-3 Edit Image Item dialog

Figure 5-2
2
1
2
3
4
3
To link to images whose URIs are stored in a database, use the following procedure. The procedure assumes you have already created a data set that includes the field, which stores the URIs to the images.
1

2
3
In the expression builder, select the data set field that stores the locations of the images, then choose OK. Figure 5‑3 shows an example of selecting a data set field named URL, which stores the URLs to images.

Figure 5-4 The expression builder showing a selected data set field that stores the URLs to images

Figure 5-3
Enter URI on Edit Image Item displays the expression that refers to the data set field.
4
4
1
2
3
The following expression is an example of a URL for a file in a remote location:
"http://mysite.com/images/companylogo.jpg"
The following expression is an example of a URI for a file that is on the local file system:
"file:///c:/myprojects/images/companylogo.jpg"
You would specify a local file system location only for testing in the early stages of report development. A deployed report cannot access resources on a local machine.
4

(c) Copyright Actuate Corporation 2008