Removing trailing 0 xml Ireport



Hello Stackoverflow members,


I'm currently having trouble when producing an Ireport, when I run the report it's giving me a weight of 29000.0kg but I require just 29000kg. I've tried different formats but I understand it might need changing in XML.


If anyone could point me in the right direction or assist me in changing this please comments: Currently this is the XML code that is against fields:



</textElement>
<textFieldExpression><![CDATA[$F{EquipmentTareWeightKg} +"kg"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="528" y="0" width="59" height="20"/>
<textElement>
<font size="12"/>


Any ideas on how to include this?


Kind Regards, Ryan


No comments:

Post a Comment