Nuclos Jasper tips and tricks: SVG background, BatikRenderer, opacity, remove UUID, regular expression, iReport. |
Language: Deutsch · English
Practical JasperReports recipes – SVG background, removing UUIDs and links to more tips.
On this page |
Small, field-tested recipes around JasperReports in Nuclos. More tips: Formatting, Styles, QR code and DataMatrix.
An SVG (as a Nuclos String (Large Object)) can be rendered as a background image. Pure SVG/XML only – no embedded raster graphics!
<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> |
For transparency replace in SQL: |
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:
uuid="[^"]*" |
Also occurs in iReport 5.6.0 compatibility mode; iReport 4.8.0 does not create UUID tags in compatibility mode. |