BackPrevious Page Next PageNext

Images

Inserting an image into a report

Binding a link to an image

An image is a digital representation of a picture. JReport supports the following image formats: .bmp, .gif, .jpg, and .png.

This section describes how to use the image component.

Inserting an image into a report

An image can be inserted in the report areas listed in Component placement.

To insert an image into a report:

  1. Position the mouse pointer at the destination where you want to insert the image.
  2. Do any of the following.
  3. In the Select an Image dialog, specify the image you want to insert.
  4. Click Open to insert the image into the destination.

Notes:

Binding a link to an image

You can make an image link to another report, a location specified by a URL, an e-mail address, or a Blob data type field. The link can either be a simple link or a conditional link. With conditional links, different targets can be loaded based on different conditions.

To bind a link to an image:

  1. Right-click the image and click Link on the shortcut menu.
  2. In the Insert Link dialog, specify whether it is a conditional link or a simple link, then select the link target and set the options for the link target as required.
  3. When done, click OK.

For details about different link targets, see Binding a Link to a Label.

See an example: The SampleComponents catalog, included with JReport Designer, contains reports that have examples of how each component type could be used in a report. For the image component example, open <install_root>\Demo\Reports\SampleComponents\ForImage.cls.

BackPrevious Page Next PageNext