Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

« Vorherige Version anzeigen Version 4 Nächste Version anzeigen »

globe with meridians Language: Deutsch · English

hammer and wrench Inserting images

Embed images in reports/forms – as a resource or dynamically from the database via InputStream.

HOW-TO APPLICATION DEVELOPER STAND: JUL 2026 GILT FUER NUCLOS 4.2026.X

Auf dieser Seite

Insert an image into the form

JasperReports accepts GIF, PNG and JPEG as well as vector graphics as SVG (without embedded raster graphics). Drag the Image tool onto the canvas and pick the file (set the filter to „All files“ if needed).

Image element in Jaspersoft Studio.

Key properties

PropertyValues
Scale ImageRetain Shape (aspect ratio, default) · Fill Frame (fills area, may distort).
On Error TypeError (throw, default) · Blank (nothing) · Icon (placeholder).
RotationNone · Left (−90°) · Right (90°) · UpsideDown (180°).
Image Alignmenthorizontal/vertical alignment.

Provide the image in Nuclos

Nuclos embeds the image at runtime by file/image name. Upload it under Configuration → Others → Resource.

Don't forget

The new resource must be assigned to the nuclet – otherwise the report reports that the image cannot be found.

Images from report data (dynamic)

To show images from the database:

  1. Create a field referencing the image (e.g. User_Photo).
  2. Set the field Class to java.io.InputStream.
  3. In the Image tab open the expression editor and set the field as the Image Expression.

Image expression from a database field.

Related pages

printer Creating forms with Jaspersoft Studio


Forms.

Öffnen →

clipboard Resource


Resources.

Öffnen →

open book QR code


Barcodes.

Öffnen →

  • Keine Stichwörter