Versionen im Vergleich

Schlüssel

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

Nuclos Jasper tips and tricks: SVG background, BatikRenderer, opacity, remove UUID, regular expression, iReport.

globe with meridians Language: Deutsch · English

open book Tips and tricks

Practical JasperReports recipes – SVG background, removing UUIDs and links to more tips.

Status
colourGrey
titleReferenz
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

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
languagexml
<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
titleTransparency

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:

Codeblock
languagetext
uuid="[^"]*"
Info
titleCause

Also occurs in iReport 5.6.0 compatibility mode; iReport 4.8.0 does not create UUID tags in compatibility mode.

Related pages

clipboard Formatting


Formatting.

Open →

printer Styles


Styles.

Open →

open book QR code


Barcodes.

Open →