| Auszug |
|---|
|
Nuclos Jasper tips and tricks: SVG background, BatikRenderer, opacity, remove UUID, regular expression, iReport. |
Language: Deutsch · English
Tips and tricks
Practical JasperReports recipes – SVG background, removing UUIDs and links to more tips.
| Status |
|---|
| colour | Blue |
|---|
| title | Application developer |
|---|
|
| Status |
|---|
| colour | Green |
|---|
| title | Updated: Jul 2026 |
|---|
|
| Status |
|---|
| colour | Grey |
|---|
| title | applies to Nuclos 4.2026.x |
|---|
|
Small, field-tested recipes around JasperReports in Nuclos. More tips: Formatting, Styles, QR code and DataMatrix.
SVG as background
An SVG (as a Nuclos String (Large Object)) can be rendered as a background image. Pure SVG/XML only – no embedded raster graphics!
| Codeblock |
|---|
|
<background>
<band height="845">
<image>
<reportElement mode="Transparent" x="1" y="0" width="530" height="845"/>
<imageExpression class="net.sf.jasperreports.engine.JRRenderable">net.sf.jasperreports.renderers.BatikRenderer.getInstance($F{teststring}.getBytes())</imageExpression>
</image>
</band>
</background> |
| Tipp |
|---|
|
For transparency replace in SQL: replace(text, "opacity:", "fill-opacity:"). |
Remove UUIDs from the JRXML
The JasperReports API 3.5.2 used in Nuclos does not accept UUIDs. If a JRXML contains UUIDs (e.g. from the wrong iReport version), search and remove them with a regular expression:
| Info |
|---|
|
Also occurs in iReport 5.6.0 compatibility mode; iReport 4.8.0 does not create UUID tags in compatibility mode. |
Related pages