jasper report - how to add asterisk to barcode numeric output?

mork

New Member
I'm created \[code\]jrxml\[/code\] using \[code\]iReport\[/code\] and generating barcode using \[code\]barcode4j\[/code\]. Goal:Output barcode with numeric value which has asterisks.Looks something like below.\[code\]||||||||||*123456*\[/code\]barcode section of jrxml:\[code\]<componentElement> <reportElement x="29" y="4" width="209" height="32"/> <jr:Code39 xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" textPosition="bottom"> <jr:codeExpression> <![CDATA["*" + $P{barCode} + "*"]]> </jr:codeExpression> </jr:Code39></componentElement>\[/code\]The code above runs fine except the output barcode does not have asterisk.So it looks like:\[code\]|||||||||123456\[/code\]
 
Back
Top