Aquí está: <textField pattern="#,##0.00;-#,##0.00" isBlankWhenNull="false"> <reportElement uuid="9975fb51-87f8-4217-9b9b-79f953d5f191" x="455" y="2" width="50" height="12"/> <textElement textAlignment="Right"> <font size="9"/> </textElement> <textFieldExpression><![CDATA[$F{gross_unit_price-gross_unit_price} ? $F{gross_unit_price-gross_unit_price} : $F{line-unit_price} ? $F{line-unit_price} : 0]]></textFieldExpression> </textField>
Saludos! 2015-05-27 11:20 GMT+02:00 Sergi Almacellas Abellana <se...@koolpi.com>: > El 27/05/15 a les 11:08, Aleix Freixa ha escrit: > >> Hola Guillem, >> >> eso ya lo comprové, y en el informe el Pattern está puesto con 2 >> decimales, por lo que o hay algun problema, o no le hace caso. >> >> ¿Cómo tienes la caja de texto definida? > Si no me falla la memoria por mucho que le pongas pattern, si la caja no > es de tipo String el pattern no aplica. > > -- > Sergi Almacellas Abellana > www.koolpi.com > Twitter: @pokoli_srk >