JasperReport has simple way to count row in report. In this report I will tell about counting records from main and sub-report. I take for base report from "Using JavaBean datasource for report and subreport in iReport" article and add necessary changes for obtain next result:
Picture 1: Line numbering result. |