DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
JasperReports Subreport In New Page
Here is a little hack to start a new subreport in a new page : set the isTitleNewPage attribute of the jasperReport tag to true and define a blank title.
<?xml version="1.0"?>
<jasperReport
xmlns="http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
topMargin="0" bottomMargin="0" leftMargin="0" rightMargin="0"
isTitleNewPage="true">
<title>
<band>
<textField isBlankWhenNull="true">
<reportElement x="0" y="0" width="555" height="0"/>
<textFieldExpression>null</textFieldExpression>
</textField>
</band>
</title>
<detail>
<!-- Put your details here -->
</detail>
</jasperReport>




