I have a table which have No, Name, Address, Phone, Email columns. I would like set auto number in No
column without parameter passing form my java class. Is there EL
or something to solve it in JasperReport
. I am using version 5.1.
Note : As simple table, I did not provide the source and template.
1- Navigate to Report Inspector tab and click on Variables menu. 2- From this menu select REPORT_COUNT and drag and drop this variable to your desired location. Now Preview your report to view your changes.
Try this
put a text-field and under the expression editor paste this $V{REPORT_COUNT}
and save and run the jasper jrxml
$V{REPORT_COUNT}
is a Built-in Variable.
Set the text field's evaluation time to "Report" if you're interested in the final value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With