BackPrevious Page Next PageNext

Images

Inserting images to a report

Binding links to images

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.

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.

Inserting images to a report

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

  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, select the image you want to use.
  4. Click Open to insert the image into the destination.

Notes:

Binding links to images

You can make the images in a report link with other reports, locations specified by URLs, e-mail addresses, or Blob data type fields. The links can either be simple links or conditional links. With conditional links, different targets can be loaded based on different conditions.

To bind a link to an image, right-click the image and click Link on the shortcut menu, then take the same procedure as described in Binding Links to Labels.

BackPrevious Page Next PageNext