Previous TopicNext Topic


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-4.
  2. Figure 5-3 Edit Image Item dialog

    Figure 5-4 Edit Image Item dialog
  3. To link to an image stored in the resource folder:
    1. In Select Image from, select Image file in shared resources.
    2. Choose Browse to find the image file in the designated resource folder.
    3. Select the image file, and choose OK.
    4. Choose Insert to insert the image in the report.
  4. 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. On Edit Image Item, in Select Image from, select URI.
    2. Under Enter URI, choose the expression builder button.
    3. In the expression builder, select the data set field that stores the locations of the images, then choose OK. Figure 5-5 shows an example of selecting a data set field named URL, which stores the URLs to images.
    4. Figure 5-4 The expression builder, showing a selected data set field that stores the URLs to images

      Figure 5-5 The expression builder, showing a selected data set field that stores the URLs to images
      Enter URI on Edit Image Item displays the expression that refers to the data set field.
    5. Choose Insert to insert the image in the report.
  5. To link to an image stored in any other location:
    1. On Edit Image Item, in Select Image from, select URI.
    2. Under Enter URI, choose the expression builder button.
    3. In the expression builder, type the location of the image file. Enclose the URI in double quotation marks (" ").
    4. 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.
    5. Choose Insert to insert the image in the report.

(c) Copyright Actuate Corporation 2006

Previous TopicNext Topic