Nuclos QR code report: ZXing, QRCodeWriter, MatrixToImageWriter, image expression, java.awt.Image, GiroCode, extensions. |
Language: Deutsch · English
QR codes in reports/forms – via ZXing and the image element, e.g. for GiroCode.
Auf dieser Seite |
QR codes can be used via the image element in JasperReports – and thus in Nuclos (e.g. for the GiroCode/EPC QR code).
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(...)):
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.
Before uploading, set the expression class = |

Example output of a QR code.