Hello I'm completely new to using Jaspersoft iReport Designer. I want to have a report with two pages. The version I'm using is 4.7.0. I already have one page with information on it but I have no clue how to add a second page. Any help will be appreciated. Thank you for your time.
标签:
jasper-reports
相关问题
- Jasper: error opening input stream from url
- JasperReports Server parameter dependency
- is it possible print element only when its detail
- JasperReports CompileReport
- Print an arraylist content with JasperReports
相关文章
- How to set up jasper reports in spring with subrep
- Modularization of Jasper reports: Pass data source
- How to use jasperreports subreports with grails ja
- Current URL /web/guest/HTML generates exception: n
- SAX2 driver class not found
- Passing array data from PHP to JasperReports (with
- How to force image url in jasper report export to
- SubReport not shown
Add a new detail band and put break page inside it.
This new detail content will be displayed in second page.
I have found another way to add pages to a report (using iReport 5.0.1): You can just add a new detail region, set its height to be the same as the first and put the contents of the 2nd page in this new region. Actually you can add as many detail regions as needed thus creating a multipage report.
To add a new page go to Ireport and "Add Report Group" ,by adding report group you can add as many pages you want.
You can accomplish this a couple ways.
The first is actually creating 2 separate reports and merging them. Basically you draw out each page how you want it to look. On export, you create the 2 JasperPrint instances of the report, and then batch export them.
The second option is to go the Subreport route. Basically you create the first page of the report. Then you create the second page of the report. Then in iReport you can add the subreport in to Summary Band, passing any needed information that it needs to run (i.e Database Connection, datasource, parameters, etc.). Under the properties for the overall report you will want to make sure
Summary on new page
is selected so that the the subreport will print on its own page.