title: How to remove the table header for table component in all the pages except first page in JR report?
body: <p>When I'm export my <em>jrml</em> to <em>csv</em> and <em>pdf</em>, I'm getting header repeatedly.</p>
  
  <p>I want to avoid this, please tell me solution.</p>
  
  <p>This is my JRML</p>
  
  <pre class="lang-xml prettyprint-override"><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="Finance Report" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"&gt;
      &lt;style name="table"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="1.0" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table_TH" mode="Opaque" backcolor="#F0F8FF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table_CH" mode="Opaque" backcolor="#BFE1FF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table_TD" mode="Opaque" backcolor="#FFFFFF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;subDataset name="FinanceDataSet"&gt;
          &lt;queryString&gt;
              &lt;![CDATA[]]&gt;
          &lt;/queryString&gt;
          &lt;field name="additionName" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[additionName]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
          &lt;field name="cost" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[cost]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
          &lt;field name="projectNumber" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[projectNumber]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
          &lt;field name="projectType" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[projectType]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
          &lt;field name="sidNumber" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[sidNumber]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
          &lt;field name="softCost" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[softCost]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
          &lt;field name="yearContrbToAssests" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[yearContrbToAssests]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
      &lt;/subDataset&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height="68" splitType="Stretch"&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="305" y="30" width="183" height="35"/&gt;
                  &lt;textElement textAlignment="Center"&gt;
                      &lt;font size="24" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Finance Report]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band height="26" splitType="Stretch"/&gt;
      &lt;/pageHeader&gt;
      &lt;detail&gt;
          &lt;band height="125" splitType="Stretch"&gt;
              &lt;componentElement&gt;
                  &lt;reportElement key="table" style="table" x="60" y="0" width="267" height="85"/&gt;
                  &lt;jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"&gt;
                      &lt;datasetRun subDataset="FinanceDataSet"&gt;
                          &lt;dataSourceExpression&gt;&lt;![CDATA[$P{REPORT_DATA_SOURCE}]]&gt;&lt;/dataSourceExpression&gt;
                      &lt;/datasetRun&gt;
                      &lt;jr:column width="90"&gt;
                          &lt;jr:tableHeader style="table_TH" height="1" rowSpan="1"/&gt;
                          &lt;jr:columnHeader style="table_CH" height="30" rowSpan="1"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement key="col_header" x="0" y="0" width="90" height="30"/&gt;
                                  &lt;textElement verticalAlignment="Middle"/&gt;
                                  &lt;text&gt;&lt;![CDATA[Project Number]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:detailCell style="table_TD" height="21" rowSpan="1"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="21"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{projectNumber}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="90"&gt;
                          &lt;jr:tableHeader style="table_TH" height="1" rowSpan="1"/&gt;
                          &lt;jr:columnHeader style="table_CH" height="30" rowSpan="1"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement key="col_header" x="0" y="0" width="90" height="30"/&gt;
                                  &lt;textElement verticalAlignment="Middle"/&gt;
                                  &lt;text&gt;&lt;![CDATA[Project Type]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:detailCell style="table_TD" height="21" rowSpan="1"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="20"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{projectType}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="90"&gt;
                          &lt;jr:tableHeader style="table_TH" height="1" rowSpan="1"/&gt;
                          &lt;jr:columnHeader style="table_CH" height="30" rowSpan="1"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement key="col_header" x="0" y="0" width="90" height="30"/&gt;
                                  &lt;textElement verticalAlignment="Middle"/&gt;
                                  &lt;text&gt;&lt;![CDATA[Cost]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:detailCell style="table_TD" height="21" rowSpan="1"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="20"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{cost}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="90"&gt;
                          &lt;jr:tableHeader style="table_TH" height="1" rowSpan="1"/&gt;
                          &lt;jr:columnHeader style="table_CH" height="30" rowSpan="1"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement key="col_header" x="0" y="0" width="90" height="30"/&gt;
                                  &lt;textElement verticalAlignment="Middle"/&gt;
                                  &lt;text&gt;&lt;![CDATA[Soft Cost]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:detailCell style="table_TD" height="21" rowSpan="1"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="20"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{softCost}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="90"&gt;
                          &lt;jr:tableHeader style="table_TH" height="1" rowSpan="1"/&gt;
                          &lt;jr:columnHeader style="table_CH" height="30" rowSpan="1"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement key="col_header" x="0" y="0" width="90" height="30"/&gt;
                                  &lt;textElement verticalAlignment="Middle"/&gt;
                                  &lt;text&gt;&lt;![CDATA[Sid Number]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:detailCell style="table_TD" height="21" rowSpan="1"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="20"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{sidNumber}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="143"&gt;
                          &lt;jr:tableHeader style="table_TH" height="1" rowSpan="1"/&gt;
                          &lt;jr:columnHeader style="table_CH" height="30" rowSpan="1"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement key="col_header" x="0" y="0" width="143" height="30"/&gt;
                                  &lt;textElement verticalAlignment="Middle"/&gt;
                                  &lt;text&gt;&lt;![CDATA[Addition Name]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:detailCell style="table_TD" height="21" rowSpan="1"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="143" height="20"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{additionName}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="113"&gt;
                          &lt;jr:tableHeader style="table_TH" height="1" rowSpan="1"/&gt;
                          &lt;jr:columnHeader style="table_CH" height="30" rowSpan="1"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement key="col_header" x="0" y="0" width="110" height="30"/&gt;
                                  &lt;textElement verticalAlignment="Middle"/&gt;
                                  &lt;text&gt;&lt;![CDATA[YearContrbToAssests]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:columnHeader&gt;
                          &lt;jr:detailCell style="table_TD" height="21" rowSpan="1"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="113" height="21"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{yearContrbToAssests}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                  &lt;/jr:table&gt;
              &lt;/componentElement&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;summary&gt;
          &lt;band height="42" splitType="Stretch"/&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  
  <p>And controller is, for <em>CSV</em> export :</p>
  
  <pre><code> outputStream = response.getOutputStream();
              jasperReport = (JasperReport) JRLoader.loadObject(sourceFile);
              jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(),jrDataSource);
              jasperPrint.getPropertiesMap().setProperty("net.sf.jasperreports.export.csv.exclude.origin.band.pageFooter", "pageFooter");
              jasperPrint.getPropertiesMap().setProperty("net.sf.jasperreports.export.csv.exclude.origin.band.title", "title");
              JRCsvExporter exporter = new JRCsvExporter();
              exporter.setParameter(JRCsvExporterParameter.JASPER_PRINT, jasperPrint);
              exporter.setParameter(JRCsvExporterParameter.OUTPUT_STREAM, outputStream);
              exporter.exportReport();
  </code></pre>
  
  <p>for <em>Pdf</em> export :</p>
  
  <pre><code> sourceFile = new File(request.getSession().getServletContext().getRealPath("WEB-INF/classes/Finance Report.jasper"));
                  response.setHeader("Content-Disposition", "attachment;filename=FinanceReport.pdf");
                  financeReportBeanList = (List&lt;FinanceReportBean&gt;) request.getSession().getAttribute("financeReportList");
                  financeReportBeanList.get(0).setCurrentDate(DateUtil.getCurrentDate());
                  jrDataSource = new JRBeanCollectionDataSource(financeReportBeanList);
  
  
      JasperReport jasperReport=null;
              JasperPrint jasperPrint=null;
              OutputStream outputStream=null;
              outputStream = response.getOutputStream();
              jasperReport = (JasperReport) JRLoader.loadObject(sourceFile);
              jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(),jrDataSource);
              JRPdfExporter exporter = new JRPdfExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
              JasperExportManager.exportReportToPdfStream(jasperPrint, outputStream);
              exporter.exportReport();
  </code></pre>