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.
An image can be inserted in the report areas listed in Component placement.
To insert an image into a report:
Notes:
-DproxyHost=XXX -DproxyPort=XX
to the batch file JReport.bat, which is located in <install_root>\bin
. When an image has been inserted into a report, you can customize its appearance and behavior by setting properties in the Report Inspector, which can be saved as a CSS style for future use (for details, see Creating a CSS style).
You can make an image link with another report, a location specified by a URL or an e-mail address. The link can either be a simple link or a conditional link. With conditional link, different targets can be loaded based on different conditions. However, conditional link is not supported on images that are not bound with a dataset.
To bind a link to an image:
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
.