Text "Styled"

Examples of special formats are documented here.

How to make part of the report text field bold

Requirement: Making part of the report text bold without using separat fields.

<textField> <reportElement key="" x="0" y="0" width="570" height="30"/> <textElement markup="styled"/> <textFieldExpression> <![CDATA["<style isBold='true'>"+" Who: " + "</style>" + "Who"]]> </textFieldExpression> </textField>

most used style:

<style isBold='true'> <style isItalic='true'> <style isUnderline='true'> <style isStrikeThrough='true'>

 

How to make part of the report text field decimal format

new java.text.DecimalFormat("#,##0.00", new java.text.DecimalFormatSymbols(java.util.Locale.German(Switzerland))).format($F{value}) new java.text.DecimalFormat("#,##0.00", new java.text.DecimalFormatSymbols(new Locale("de","CH"))).format($F{value})

 

How to make part of the report text field date format