Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Nuclos QR code report: ZXing, QRCodeWriter, MatrixToImageWriter, image expression, java.awt.Image, GiroCode, extensions.

globe with meridians Language: Deutsch · English

hammer and wrench QR codes in reporting

QR codes in reports/forms – via ZXing and the image element, e.g. for GiroCode.

Status
colourPurple
titleHow-to
Status
colourBlue
titleApplication developer
Status
colourGreen
titleUpdated: Jul 2026
Status
colourGrey
titleapplies to Nuclos 4.2026.x

Panel
bgColor#F4F5F7

On this page

Inhalt
maxLevel2
minLevel2

QR codes in reporting

QR codes can be used via the image element in JasperReports – and thus in Nuclos (e.g. for the GiroCode/EPC QR code).

Prerequisites

  • Jaspersoft Studio
  • ZXing Core
  • ZXing Java SE Extensions

Procedure

Add the ZXing libraries in Jaspersoft Studio as external JARs via the project properties. Then insert an image element and set the QR generator in its image expression (field from the data source, here $F{ZEICHENKETTE}; width/height via encode(...)):

Codeblock
languagejava
com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(
  new com.google.zxing.qrcode.QRCodeWriter().encode(
    $F{ZEICHENKETTE},
    com.google.zxing.BarcodeFormat.QR_CODE, 300, 300))

Image expression with the QR generator.

Warnung
titleImportant

Before uploading, set the expression class = java.awt.Image – otherwise the server aborts the upload with an error. To use it in Nuclos, transfer the libraries as extensions.

Example output of a QR code.

Related pages

printer Working with Jasper Studio


Overview.

Open →

clipboard Embedding a barcode


Barcodes.

Open →