GeeCON Prague 2014*
The moose likes Other Open Source Projects and the fly likes Problem while using Page break in JasperReports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem while using Page break in JasperReports " Watch "Problem while using Page break in JasperReports " New topic
Author

Problem while using Page break in JasperReports

Sheela Kumar
Greenhorn

Joined: Jun 16, 2008
Posts: 1
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 ]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39044
    
  23
Welcome to JavaRanch.

I think your chances of an answer will be better if I move this thread; most discussion of Jasper is elsewhere.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39044
    
  23
Sorry you haven't had any responses yet; sometimes there is nobody who knows.
I googled and found this; CTRL-f suggests there is no actual page break function in Jasper.
 
GeeCON Prague 2014
 
subject: Problem while using Page break in JasperReports