title: avoiding unwanted page break in JasperReports
body: <p>While printing resultset using jasper api, I am facing one problem.</p>
  
  <p><strong>Description :</strong> </p>
  
  <p><strong>Report format :</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>GroupA(GroupHeader)
  
  SubGroupName(SubGroup Header)
  
  ....Data(Detail Section).....
  </code></pre>
  
  <p><strong>Condition :</strong></p>
  
  <p>If my subgroup header or GroupHeader appears to be at the bottom of the page i want to insert a page break,so that both header sections as well as data appears on the next page.</p>
  
  <p>Example : </p>
  
  <p><strong>Actual Output :</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>GroupA(GroupHeader)
  
  SubGroupName(SubGroup Header)
  
  &lt;unwanted Pagebreak&gt;
  ....Data(Detail Section).....
  </code></pre>
  
  <p><strong>Expected Output :</strong></p>
  
  <p>I want to avoid unwanted Pagebreak.so that my output will look like ,</p>
  
  <pre class="lang-none prettyprint-override"><code>GroupA(GroupHeader)
  
  SubGroupName(SubGroup Header)
  
  ....Data(Detail Section).....
  </code></pre>
  
  <p>My JRXML file :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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" name="Account Sub Sub Group Report" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty"&gt;
      &lt;property name="ireport.zoom" value="1.0"/&gt;
      &lt;property name="ireport.x" value="0"/&gt;
      &lt;property name="ireport.y" value="0"/&gt;
      &lt;parameter name="P_Company" class="java.lang.String" isForPrompting="false"/&gt;
      &lt;parameter name="P_UserName" class="java.lang.String" isForPrompting="false"/&gt;
      &lt;parameter name="P_Criteria" class="java.lang.Object" isForPrompting="false"&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA["' '"]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;parameter name="P_Criteria_Code" class="java.lang.String"&gt;
          &lt;parameterDescription&gt;&lt;![CDATA[]]&gt;&lt;/parameterDescription&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA["' '"]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;parameter name="P_Criteria_Name" class="java.lang.String"&gt;
          &lt;parameterDescription&gt;&lt;![CDATA[]]&gt;&lt;/parameterDescription&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA["' '"]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;parameter name="P_Criteria_Suid" class="java.lang.Integer"&gt;
          &lt;parameterDescription&gt;&lt;![CDATA[]]&gt;&lt;/parameterDescription&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA[-1]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;parameter name="P_Criteria_String" class="java.lang.String" isForPrompting="false"/&gt;
      &lt;parameter name="P_ReportName" class="java.lang.String" isForPrompting="false"/&gt;
      &lt;parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA["D:\\Ankitha\\DIS\\ws\\dis-services\\src\\main\\resources\\report\\"]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;queryString&gt;
          &lt;![----Query String----]&gt;
      &lt;/queryString&gt;
      &lt;field name="ACGR_NAME" class="java.lang.String"/&gt;
      &lt;field name="ACSG_NAME" class="java.lang.String"/&gt;
      &lt;field name="ACSG_NATURE" class="java.lang.String"/&gt;
      &lt;field name="ACTP_NAME" class="java.lang.String"/&gt;
      &lt;field name="ASSG_CODE" class="java.lang.String"/&gt;
      &lt;field name="ASSG_NAME" class="java.lang.String"/&gt;
      &lt;field name="ASSG_ISLIMITAPPLICABLE" class="java.lang.String"/&gt;
      &lt;field name="ASSG_LIMITFROM" class="java.math.BigDecimal"/&gt;
      &lt;field name="ASSG_LIMITTO" class="java.math.BigDecimal"/&gt;
      &lt;field name="ASSG_ISBUDGETAPPLICABLE" class="java.lang.String"/&gt;
      &lt;field name="ASSG_BUDGETAMOUNT" class="java.math.BigDecimal"/&gt;
      &lt;field name="ASSG_SEQUENCE" class="java.math.BigDecimal"/&gt;
      &lt;variable name="ReportTitle" class="java.lang.String"&gt;
          &lt;initialValueExpression&gt;&lt;![CDATA[$R{label.report.assg.reporttitle}]]&gt;&lt;/initialValueExpression&gt;
      &lt;/variable&gt;
      &lt;group name="AccountGroupName"&gt;
          &lt;groupExpression&gt;&lt;![CDATA[$F{ACGR_NAME}]]&gt;&lt;/groupExpression&gt;
          &lt;groupHeader&gt;
              &lt;band height="17"&gt;
                  &lt;line&gt;
                      &lt;reportElement isPrintRepeatedValues="false" x="0" y="0" width="802" height="1" printWhenGroupChanges="AccountGroupName"/&gt;
                      &lt;graphicElement&gt;
                          &lt;pen lineWidth="0.01"/&gt;
                      &lt;/graphicElement&gt;
                  &lt;/line&gt;
                  &lt;textField isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" x="0" y="1" width="802" height="16" forecolor="#8E6531"/&gt;
                      &lt;textElement verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="11" isBold="true" isUnderline="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.accountGroupName}+" "+$F{ACGR_NAME}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
              &lt;/band&gt;
          &lt;/groupHeader&gt;
      &lt;/group&gt;
      &lt;group name="AccountSubGroupName"&gt;
          &lt;groupExpression&gt;&lt;![CDATA[$F{ACSG_NAME}]]&gt;&lt;/groupExpression&gt;
          &lt;groupHeader&gt;
              &lt;band height="15"&gt;
                  &lt;textField isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="802" height="15" forecolor="#404D71"/&gt;
                      &lt;box leftPadding="20"/&gt;
                      &lt;textElement verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="10" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.accountSubGroupName}+" "+$F{ACSG_NAME}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
              &lt;/band&gt;
          &lt;/groupHeader&gt;
      &lt;/group&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height="51" splitType="Stretch"&gt;
              &lt;subreport&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="1" y="0" width="801" height="51"/&gt;
                  &lt;subreportParameter name="SUBREPORT_DIR"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{SUBREPORT_DIR}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="P_Criteria_String"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{P_Criteria_String}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="P_Criteria_Code"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{P_Criteria_Code}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="P_UserName"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{P_UserName}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="P_Company"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{P_Company}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="P_ReportName"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$V{ReportTitle}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="P_Criteria"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{P_Criteria}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="P_Criteria_Suid"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{P_Criteria_Suid}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="P_Criteria_Name"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{P_Criteria_Name}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="REPORT_RESOURCE_BUNDLE"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{REPORT_RESOURCE_BUNDLE}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;connectionExpression&gt;&lt;![CDATA[$P{REPORT_CONNECTION}]]&gt;&lt;/connectionExpression&gt;
                  &lt;subreportExpression&gt;&lt;![CDATA[$P{SUBREPORT_DIR} + "Header.jasper"]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
          &lt;/band&gt;
      &lt;/title&gt;
      &lt;columnHeader&gt;
          &lt;band height="33"&gt;
              &lt;frame&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="802" height="33"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.01" lineColor="#333333"/&gt;
                      &lt;topPen lineWidth="0.01" lineColor="#333333"/&gt;
                      &lt;leftPen lineWidth="0.01" lineColor="#333333"/&gt;
                      &lt;bottomPen lineWidth="0.01" lineColor="#333333"/&gt;
                      &lt;rightPen lineWidth="0.01" lineColor="#333333"/&gt;
                  &lt;/box&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="214" height="33" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" backcolor="#CCE6F5"/&gt;
                      &lt;box leftPadding="5"/&gt;
                      &lt;textElement verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.name}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="214" y="0" width="79" height="33" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" backcolor="#CCE6F5"/&gt;
                      &lt;box leftPadding="5"/&gt;
                      &lt;textElement verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.code}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="293" y="0" width="59" height="33" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" backcolor="#CCE6F5"/&gt;
                      &lt;box leftPadding="5"/&gt;
                      &lt;textElement verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.accounttype}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="652" y="0" width="67" height="33" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" backcolor="#CCE6F5"/&gt;
                      &lt;box rightPadding="5"/&gt;
                      &lt;textElement textAlignment="Right" verticalAlignment="Top"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.budget}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="480" y="17" width="62" height="16" backcolor="#CCE6F5"/&gt;
                      &lt;box rightPadding="5"/&gt;
                      &lt;textElement textAlignment="Right" verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.inhouselimitto}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="352" y="17" width="65" height="16" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" backcolor="#CCE6F5"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.applicable}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="542" y="17" width="47" height="16" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" backcolor="#CCE6F5"/&gt;
                      &lt;box leftPadding="5"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.sequence}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="589" y="17" width="63" height="16" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" backcolor="#CCE6F5"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Top"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.applicable}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="719" y="17" width="83" height="16" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" backcolor="#CCE6F5"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.nature}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="417" y="17" width="63" height="16" backcolor="#CCE6F5"/&gt;
                      &lt;box rightPadding="5"/&gt;
                      &lt;textElement textAlignment="Right" verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.inhouselimitfrom}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="352" y="0" width="65" height="17" backcolor="#CCE6F5"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Top"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.limit}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="417" y="0" width="125" height="17" backcolor="#CCE6F5"/&gt;
                      &lt;box rightPadding="0"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Top"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.inhouselimit}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="542" y="0" width="47" height="17" backcolor="#CCE6F5"/&gt;
                      &lt;box leftPadding="5"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Top"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.reporting}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="589" y="0" width="63" height="17" backcolor="#CCE6F5"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Top"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.budgetappl}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                      &lt;reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="719" y="0" width="83" height="17" backcolor="#CCE6F5"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                          &lt;font fontName="Verdana" size="9" isBold="true"/&gt;
                      &lt;/textElement&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$R{label.report.assg.account}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
              &lt;/frame&gt;
          &lt;/band&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height="19"&gt;
              &lt;rectangle&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="1" y="0" width="800" height="18" backcolor="#F2F2F2"&gt;
                      &lt;printWhenExpression&gt;&lt;![CDATA[new Boolean($V{PAGE_COUNT}.intValue() % 2 == 0)]]&gt;&lt;/printWhenExpression&gt;
                  &lt;/reportElement&gt;
                  &lt;graphicElement&gt;
                      &lt;pen lineWidth="0.0"/&gt;
                  &lt;/graphicElement&gt;
              &lt;/rectangle&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="653" y="0" width="67" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;textElement textAlignment="Right" verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASSG_BUDGETAMOUNT}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="543" y="0" width="47" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASSG_SEQUENCE}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="481" y="0" width="62" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;textElement textAlignment="Right" verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASSG_LIMITTO}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="353" y="0" width="66" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASSG_ISLIMITAPPLICABLE}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="419" y="0" width="61" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;textElement textAlignment="Right" verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASSG_LIMITFROM}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="1" y="0" width="214" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;box leftPadding="5"/&gt;
                  &lt;textElement verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASSG_NAME}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="590" y="0" width="63" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASSG_ISBUDGETAPPLICABLE}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="215" y="0" width="79" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;box leftPadding="5"/&gt;
                  &lt;textElement verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASSG_CODE}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="294" y="0" width="59" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;box leftPadding="5"/&gt;
                  &lt;textElement verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ACTP_NAME}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="720" y="0" width="82" height="18" isRemoveLineWhenBlank="true"/&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle"&gt;
                      &lt;font fontName="Verdana" size="9"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ACSG_NATURE}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;break&gt;
                  &lt;reportElement x="0" y="18" width="800" height="1"&gt;
                      &lt;printWhenExpression&gt;&lt;![CDATA[new Boolean($V{AccountSubGroupName_COUNT}.intValue()&lt;1)]]&gt;&lt;/printWhenExpression&gt;
                  &lt;/reportElement&gt;
              &lt;/break&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;pageFooter&gt;
          &lt;band height="20"&gt;
              &lt;textField isStretchWithOverflow="true"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="652" y="1" width="113" height="19"/&gt;
                  &lt;textElement textAlignment="Right"&gt;
                      &lt;font fontName="Verdana"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true" evaluationTime="Report"&gt;
                  &lt;reportElement stretchType="RelativeToBandHeight" x="765" y="1" width="37" height="19"/&gt;
                  &lt;textElement&gt;
                      &lt;font fontName="Verdana"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[" " + $V{PAGE_NUMBER}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/pageFooter&gt;
  &lt;/jasperReport&gt;
  </code></pre>