Olá…
Estou com problemas na paginação no meu relatório.
Crio uma variável para a página atual e outra para o total de páginas e depois de compilado, aparece assim nas paginas do relatório: 1/0 , 1/0, 2/0, 3/0 sendo que o relatório tem 4 paginas, e deveria sair assim: 1/4, 2/4…
O que há de errado com o meu código?!??!
<variable calculation="Count" class="java.lang.Integer" incrementType="Page" name="PAG_ATUAL" resetType="None">
<variableExpression>$V{PAGE_NUMBER}</variableExpression>
</variable>
<variable calculation="Count" class="java.lang.Integer" incrementType="Page" name="TOTAL_PAG" resetType="None">
<variableExpression>$V{PAGE_COUNT}</variableExpression>
</variable>
<textField evaluationTime="Now" isBlankWhenNull="true" isStretchWithOverflow="true">
<reportElement forecolor="#000000" height="15" isRemoveLineWhenBlank="true" mode="Transparent" positionType="FixRelativeToTop" width="40" x="458" y="34"/>
<textElement rotation="None" textAlignment="Right" verticalAlignment="Top">
<font size="10"/>
</textElement>
<textFieldExpression class="java.lang.Integer">$V{PAG_ATUAL}</textFieldExpression>
</textField>
<textField evaluationTime="Report" isBlankWhenNull="true" isStretchWithOverflow="true">
<reportElement forecolor="#000000" height="15" isRemoveLineWhenBlank="true" mode="Transparent" positionType="FixRelativeToTop" width="28" x="505" y="34"/>
<textElement rotation="None" textAlignment="Left" verticalAlignment="Top">
<font size="10"/>
</textElement>
<textFieldExpression class="java.lang.Integer">$V{TOTAL_PAG}</textFieldExpression>
</textField>
Obrigada.
Amanda.
