We are facing a problem while using Page break in Jasper Reports.
we are having a main report which calls the Subreport and the subreport is having a table and 5 more sub reports.
we are passing a arraylist to the main report.The arraylist contains the Vo's for the reord selected from the user.The VO contains values for the fields in the sub report and other 5 sub repports in the sub report. The main report will call the sub report for each vo in the arraylist.
We need each record to be displayed in separate pages in the same PDF. There are cases that the 5 subReports in the sub report won't be displayed only the table in the sub report will be displayed.
We need each record to be displayed in separate pages regardless of whether the sub report contains other 5 sub reports.
We tried to put a page break after each record so that the next record comes in separate page but we got an exception element type 'break' must be declared.
Please help us to solve this issue.
Thanks in advance, Sheela [ June 16, 2008: Message edited by: Sheela Kumar ]