How to add serial number in jasper ireport

In this article you will learn how to display serial number in jasper reports. Serial number holds the count of rows/records that are read from the data source How to add report data source in jasper.

To print serial numbers in jasper report follow these steps.
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.