Boa noite a todos,
Estou com um problema com a mascar no IReport, pois quando eu coloco a mascara currency ele me mostra o valor dessa forma ¤89,75, alguem já passou por essa situação e pode ajudar…
E outra alguem sabe com redimensionar um campo do jasper de acordo com numero de linhas que for passado ?
Para que o campo aumente conforme o texto, basta marcar a propriedade "Stretch with Overflow".
Quanto ao problema da mascara, seu campo é de um tipo valido para usá-la? Digo, mesmo se vc colocar outra mascara, ele obedece?
Se sim, pode ser a configuração do seu SO… talvez não tenha um símbolo para usar configurado.
No iReport (3.7.x), em Ferramentas >> Opções >> Compilation and execution, você pode fazer o teste com varios locales lá.
Opa,
Referindo -me ao campo aumentar conforme o texto, eu marquei essa propriedade, mas não funcionou, estou usando o Ireport 3.0, já até solicitei aqui na empresa para atualizar, mas acredito que o problema não é esse.
segue trecho do meu jrxml
<lastPageFooter>
<band height="631" isSplitAllowed="true" >
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="false" evaluationTime="Auto" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="554"
y="13"
width="121"
height="17"
key="textField"/>
<box></box>
<textElement textAlignment="Right">
<font fontName="Arial" size="12" isBold="true"/>
</textElement>
<textFieldExpression class="java.lang.Number"><![CDATA[$V{TOTAL_PARCELA}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
x="426"
y="13"
width="64"
height="17"
key="staticText"/>
<box></box>
<textElement textAlignment="Center">
<font fontName="Arial" size="12" isBold="true"/>
</textElement>
<text><![CDATA[TOTAL]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="0"
y="51"
width="750"
height="580"
forecolor="#990000"
key="textField"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box></box>
<textElement>
<font fontName="Courier New" size="9" isBold="true"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{FOOTER01}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
x="0"
y="0"
width="33"
height="13"
key="separador-3"/>
<box></box>
<textElement>
<font/>
</textElement>
<text><![CDATA[]]></text>
</staticText>
<staticText>
<reportElement
x="0"
y="30"
width="33"
height="13"
key="separador-4"/>
<box></box>
<textElement>
<font/>
</textElement>
<text><![CDATA[]]></text>
</staticText>
</band>
</lastPageFooter>
Bom atuazei a versão dos jars do POI, jasperreport e etc. e compilei pela nova versão do Ireport 3.7.4 e solucionou o problema