Etoy utilizando Jasper para reportes.
(http://i.elhacker.net/i?i=dCptW-40LcfxxKOIupdGtmVo)
(http://i.elhacker.net/i?i=eDNsaWlYfcrMJsO8pOlc-WVo)
Quiero agregar un contador para que me enumere los articulos.
Creo que tienes que agregar la variable embebida $V{REPORT_COUNT} en un TextField con clase Integer.
No me funciona
<textField>
<reportElement x="1" y="17" width="59" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[$V{REPORT_COUNT}]]></textFieldExpression>
</textField>
Intenta con la clase Integer en lugar de String:
<textFieldExpression class="java.lang.Integer"><![CDATA[$V{REPORT_COUNT}]]></textFieldExpression>