0
votes

I'm currently using the report to print out the information of all the employees using the same format. For example, here is the employee table in my database.

EmployeeID  NAME  AGE
----------------------
     1      Tom    28
     2      John   30
     3      Tony   32

I just want to print out the information of the employees using the same format whenever there is other employees in the table. (first employee in first page, second in the second page.....) Is there any way like that?

1

1 Answers

1
votes

You can use PageBreak for each row so you can have a page

To implement this solution:

  • add the table component to your report

  • open the DataSet associated with this report and add to it the Group

  • set Group expression to

    (int)($V{REPORT_COUNT} - 1)

  • check 'Start on a new page' property

see the link for more detail http://community.jaspersoft.com/wiki/ireport-how-introduce-page-break-after-pre-defined-number-rows-table-component