title: Repeating row for every report
body: <p>I have created a table report. </p>
  
  <p>I have put <code>no</code>, <code>agency name</code>, <code>year 1</code>, <code>year 2</code>, <code>year 3</code>, <code>year 4</code>, <code>year 5</code> and the total for the first row and the second row. I've put all sum of <code>year 1</code>, <code>year 2</code>, <code>year 3</code>, <code>year 4</code>, <code>year 5</code> and total of agencies in the <code>Detail</code> band. After that, I put the line chart layout. In the end, I put the <strong><code>page break</code></strong> with <em><code>$V{REPORT_COUNT} % 5==0</code></em> condition. But the problem is repetitive data along both the row. How to solve this problem? I want to view 5 row per page for an one report. The result are still the same.</p>
  
  <p>Here i attach my code:</p>
  
  <blockquote>
    <p><strong>Update:</strong></p>
  </blockquote>
  
  <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="charttest" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"&gt;
      &lt;property name="ireport.zoom" value="1.0"/&gt;
      &lt;property name="ireport.x" value="0"/&gt;
      &lt;property name="ireport.y" value="99"/&gt;
      &lt;parameter name="P_YEAR" class="java.lang.String"&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA[]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
      &lt;parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA["C:\\Documents and Settings\\NT\\Desktop\\CHART\\"]]&gt;&lt;/defaultValueExpression&gt;
      &lt;/parameter&gt;
  
      &lt;field name="PARENT_NAME" class="java.lang.String"/&gt;
      &lt;field name="PARENT_NAME_SECTOR" class="java.lang.String"/&gt;
      &lt;field name="AGENCY_PARENT_CODE" class="java.lang.String"/&gt;
      &lt;field name="AGENCY_CODE" class="java.lang.String"/&gt;
      &lt;field name="AGENCY_NAME" class="java.lang.String"/&gt;
      &lt;field name="YEAR" class="java.math.BigDecimal"/&gt;
      &lt;field name="SECTOR_ID" class="java.lang.String"/&gt;
      &lt;field name="SECTOR_NAME" class="java.lang.String"/&gt;
      &lt;field name="DYEAR1" class="java.math.BigDecimal"/&gt;
      &lt;field name="DYEAR2" class="java.math.BigDecimal"/&gt;
      &lt;field name="DYEAR3" class="java.math.BigDecimal"/&gt;
      &lt;field name="DYEAR4" class="java.math.BigDecimal"/&gt;
      &lt;field name="DYEAR5" class="java.lang.String"/&gt;
      &lt;field name="YR1" class="java.math.BigDecimal"/&gt;
      &lt;field name="YR2" class="java.math.BigDecimal"/&gt;
      &lt;field name="YR3" class="java.math.BigDecimal"/&gt;
      &lt;field name="YR4" class="java.math.BigDecimal"/&gt;
      &lt;field name="YR5" class="java.math.BigDecimal"/&gt;
      &lt;variable name="YR1_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR1}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR2_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR2}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR3_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR3}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR4_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR4}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR5_1" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR5}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR1_2" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR1}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR2_2" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR2}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR3_2" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR3}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR4_2" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR4}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="YR5_2" class="java.math.BigDecimal" resetType="Column" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR5}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;variable name="sumA" class="java.lang.Integer" calculation="Sum"&gt;
          &lt;variableExpression&gt;&lt;![CDATA[$F{YR1}+$F{YR2}+$F{YR3}+$F{YR4}+$F{YR5}]]&gt;&lt;/variableExpression&gt;
      &lt;/variable&gt;
      &lt;group name="Agency"&gt;
          &lt;groupExpression&gt;&lt;![CDATA[$F{PARENT_NAME_SECTOR}]]&gt;&lt;/groupExpression&gt;
          &lt;groupHeader&gt;
              &lt;band height="192"&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="622" y="83" width="100" height="20"/&gt;
                      &lt;textElement/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{SECTOR_NAME}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="64" y="145" width="100" height="20"/&gt;
                      &lt;textElement/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{AGENCY_NAME}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="74" y="83" width="100" height="20"/&gt;
                      &lt;textElement/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{DYEAR1}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="18" y="83" width="56" height="20"/&gt;
                      &lt;textElement/&gt;
                      &lt;text&gt;&lt;![CDATA[Year From :]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="18" y="104" width="56" height="20"/&gt;
                      &lt;textElement/&gt;
                      &lt;text&gt;&lt;![CDATA[Year To :]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="574" y="83" width="48" height="20"/&gt;
                      &lt;textElement/&gt;
                      &lt;text&gt;&lt;![CDATA[Sector :]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="18" y="145" width="46" height="20"/&gt;
                      &lt;textElement/&gt;
                      &lt;text&gt;&lt;![CDATA[Agency :]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="74" y="104" width="100" height="20"/&gt;
                      &lt;textElement/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{DYEAR5}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="0" y="21" width="802" height="26"/&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Middle"/&gt;
                      &lt;text&gt;&lt;![CDATA[5 YEAR STATISTICS ON APPLICATION RECEIVED (BY ALL AGENCIES)]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="18" y="165" width="33" height="27"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Middle"/&gt;
                      &lt;text&gt;&lt;![CDATA[No.]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="425" y="178" width="85" height="14"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{DYEAR3}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="510" y="178" width="85" height="14"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{DYEAR4}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="595" y="178" width="85" height="14"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{DYEAR5}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="340" y="178" width="85" height="14"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{DYEAR2}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="255" y="178" width="85" height="14"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$F{DYEAR1}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="255" y="165" width="425" height="13"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;text&gt;&lt;![CDATA[Year]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="51" y="165" width="204" height="27"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center" verticalAlignment="Middle"/&gt;
                      &lt;text&gt;&lt;![CDATA[Agency Name]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="680" y="165" width="85" height="27"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;text&gt;&lt;![CDATA[Total]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
              &lt;/band&gt;
          &lt;/groupHeader&gt;
          &lt;groupFooter&gt;
              &lt;band height="395"&gt;
                  &lt;lineChart&gt;
                      &lt;chart&gt;
                          &lt;reportElement x="30" y="42" width="772" height="353"/&gt;
                          &lt;chartTitle/&gt;
                          &lt;chartSubtitle/&gt;
                          &lt;chartLegend/&gt;
                      &lt;/chart&gt;
                      &lt;categoryDataset&gt;
                          &lt;dataset resetType="Group" resetGroup="Agency" incrementType="Report"/&gt;
                          &lt;categorySeries&gt;
                              &lt;seriesExpression&gt;&lt;![CDATA[$F{PARENT_NAME_SECTOR}]]&gt;&lt;/seriesExpression&gt;
                              &lt;categoryExpression&gt;&lt;![CDATA[$F{YEAR}]]&gt;&lt;/categoryExpression&gt;
                              &lt;valueExpression&gt;&lt;![CDATA[$F{YR5}]]&gt;&lt;/valueExpression&gt;
                          &lt;/categorySeries&gt;
                      &lt;/categoryDataset&gt;
                      &lt;linePlot&gt;
                          &lt;plot/&gt;
                      &lt;/linePlot&gt;
                  &lt;/lineChart&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="340" y="0" width="85" height="20"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$V{YR2_2}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;staticText&gt;
                      &lt;reportElement x="18" y="0" width="237" height="20"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;text&gt;&lt;![CDATA[                                                                          Total]]&gt;&lt;/text&gt;
                  &lt;/staticText&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="255" y="0" width="85" height="20"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$V{YR1_2}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="425" y="0" width="85" height="20"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$V{YR3_2}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="510" y="0" width="85" height="20"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$V{YR4_2}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="595" y="0" width="85" height="20"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[$V{YR5_2}]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
                  &lt;textField&gt;
                      &lt;reportElement x="680" y="0" width="85" height="20"/&gt;
                      &lt;box&gt;
                          &lt;pen lineWidth="0.5"/&gt;
                          &lt;topPen lineWidth="0.5"/&gt;
                          &lt;leftPen lineWidth="0.5"/&gt;
                          &lt;bottomPen lineWidth="0.5"/&gt;
                          &lt;rightPen lineWidth="0.5"/&gt;
                      &lt;/box&gt;
                      &lt;textElement textAlignment="Center"/&gt;
                      &lt;textFieldExpression&gt;&lt;![CDATA[new Integer($V{YR1_1}.intValue() + $V{YR2_1}.intValue()+
  $V{YR3_1}.intValue()+ $V{YR4_1}.intValue())+ $V{YR5_1}.intValue()]]&gt;&lt;/textFieldExpression&gt;
                  &lt;/textField&gt;
              &lt;/band&gt;
          &lt;/groupFooter&gt;
      &lt;/group&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;detail&gt;
          &lt;band height="20" splitType="Stretch"&gt;
              &lt;textField&gt;
                  &lt;reportElement x="510" y="0" width="85" height="20"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5"/&gt;
                      &lt;leftPen lineWidth="0.5"/&gt;
                      &lt;bottomPen lineWidth="0.5"/&gt;
                      &lt;rightPen lineWidth="0.5"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center"/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{YR4}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="51" y="0" width="204" height="20"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5"/&gt;
                      &lt;leftPen lineWidth="0.5"/&gt;
                      &lt;bottomPen lineWidth="0.5"/&gt;
                      &lt;rightPen lineWidth="0.5"/&gt;
                  &lt;/box&gt;
                  &lt;textElement&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{PARENT_NAME_SECTOR}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="18" y="0" width="33" height="20"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5"/&gt;
                      &lt;leftPen lineWidth="0.5"/&gt;
                      &lt;bottomPen lineWidth="0.5"/&gt;
                      &lt;rightPen lineWidth="0.5"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center"/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$V{COLUMN_COUNT}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="255" y="0" width="85" height="20"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5"/&gt;
                      &lt;leftPen lineWidth="0.5"/&gt;
                      &lt;bottomPen lineWidth="0.5"/&gt;
                      &lt;rightPen lineWidth="0.5"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center"/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{YR1}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="340" y="0" width="85" height="20"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5"/&gt;
                      &lt;leftPen lineWidth="0.5"/&gt;
                      &lt;bottomPen lineWidth="0.5"/&gt;
                      &lt;rightPen lineWidth="0.5"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center"/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{YR2}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="425" y="0" width="85" height="20"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5"/&gt;
                      &lt;leftPen lineWidth="0.5"/&gt;
                      &lt;bottomPen lineWidth="0.5"/&gt;
                      &lt;rightPen lineWidth="0.5"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center"/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{YR3}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="595" y="0" width="85" height="20"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5"/&gt;
                      &lt;leftPen lineWidth="0.5"/&gt;
                      &lt;bottomPen lineWidth="0.5"/&gt;
                      &lt;rightPen lineWidth="0.5"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center"/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{YR5}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="680" y="0" width="85" height="20"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5"/&gt;
                      &lt;leftPen lineWidth="0.5"/&gt;
                      &lt;bottomPen lineWidth="0.5"/&gt;
                      &lt;rightPen lineWidth="0.5"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center"/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[new Integer($F{YR1}.intValue() + $F{YR2}.intValue()+ $F{YR3}.intValue()+ $F{YR4}.intValue())+ $F{YR5}.intValue()]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;break&gt;
                  &lt;reportElement x="0" y="19" width="802" height="1"&gt;
                      &lt;printWhenExpression&gt;&lt;![CDATA[($V{REPORT_COUNT} % 5 == 0)]]&gt;&lt;/printWhenExpression&gt;
                  &lt;/reportElement&gt;
              &lt;/break&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
  &lt;/jasperReport&gt;
  </code></pre>