Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto row number in Jasper Report Table

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 ELor something to solve it in JasperReport. I am using version 5.1.

Note : As simple table, I did not provide the source and template.

like image 738
Zaw Than oo Avatar asked Aug 06 '13 11:08

Zaw Than oo


People also ask

How do I add a serial number to my Jasper Report?

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.


1 Answers

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.

like image 104
Nidhish Krishnan Avatar answered Oct 20 '22 16:10

Nidhish Krishnan