title: Jasper Reports exports well to PDF but not to Excel
body: <p>I'm new with Jasper Reports. I'm using 5.6.0 version and I can export some data to PDF and all fields are filled correct but when I try to export the same data to Excel, some fields are missing. The code I use it's the some on both clases (I have one class for each file export)</p>
  
  <p>I also read that the template to export to PDF or Excel it's the same, so I don't know why fills all in PDF and not in Excel.</p>
  
  <p>When I generate the PDF I pass all the data to:</p>
  
  <pre><code>JasperExportManager.exportReportToPdfStream(jasperPrint,fileOutputStream);
  </code></pre>
  
  <p>And when I try to generate the Excel I call this funcion:</p>
  
  <pre><code>private void generateExcel(JasperPrint jasperPrint) throws IOException, JRException {
      JRXlsExporter exporterXLS = new JRXlsExporter();
      JFileChooser jFileChooser = new JFileChooser(".");
      jFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
      int status = jFileChooser.showOpenDialog(SIXACOPWorkbench.getWorkbenchContext().getWorkbench().getFrame());
      if (status == JFileChooser.APPROVE_OPTION) {
          if (jFileChooser.getSelectedFile() != null) {
              String pathPDFs = (jFileChooser.getSelectedFile().getAbsolutePath());
              File ficheroXLS = new File(pathPDFs+"//testing.xls");
              FileOutputStream fos = new FileOutputStream(ficheroXLS);
              exporterXLS.setExporterInput(new SimpleExporterInput(jasperPrint));
              exporterXLS.setExporterOutput(new SimpleOutputStreamExporterOutput(fos));
              SimpleXlsReportConfiguration configuration = new SimpleXlsReportConfiguration();
              configuration.setRemoveEmptySpaceBetweenRows(true);
              configuration.setDetectCellType(true);
              configuration.setWhitePageBackground(false);
              exporterXLS.setConfiguration(configuration);
              exporterXLS.exportReport();     
              fos.close();
          }
      }
  }
  </code></pre>
  
  <p>¿What I'm doing wrong when exporting to Excel?</p>
  
  <p>Regards.</p>
  
  <p>--- Update ---</p>
  
  <p>I thoguht that if the PDF was generating well the Excel should do it but after read Dave Jarvis comment I'm updating with the jrxml:</p>
  
  <p>1 - There are 3 informs: Inform A - Inform B - Inform C.
  2 - <strong>Inform A</strong> has a header and footer and each row it's filled by <strong>Inform B</strong>.
  3 - On <strong>Inform B</strong> the field that it's nos displayed on <em>Excel</em> it's <em>numberIndex</em>:</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="SubinformeAtribucionesPorPropietario1" pageWidth="813" pageHeight="842" columnWidth="813" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="5af05b05-4f4d-4ff8-8bcb-ef8fa6c2b067"&gt;
      &lt;property name="ireport.scriptlethandling" value="0"/&gt;
      &lt;property name="ireport.encoding" value="UTF-8"/&gt;
      &lt;property name="ireport.zoom" value="1.4641000000000008"/&gt;
      &lt;property name="ireport.x" value="178"/&gt;
      &lt;property name="ireport.y" value="0"/&gt;
      &lt;import value="net.sf.jasperreports.engine.*"/&gt;
      &lt;import value="java.util.*"/&gt;
      &lt;import value="net.sf.jasperreports.engine.data.*"/&gt;
      &lt;parameter name="Inform C" class="net.sf.jasperreports.engine.JasperReport" isForPrompting="false"/&gt;
      &lt;parameter name="useNumberIndex" class="java.lang.Boolean" isForPrompting="false"/&gt;
      &lt;field name="fieldA" class="java.util.List"/&gt;
      &lt;field name="fieldB" class="java.lang.String"/&gt;
      &lt;field name="fieldC" class="java.lang.String"/&gt;
      &lt;field name="fieldD" class="java.lang.String"/&gt;
      &lt;field name="fieldF" class="java.lang.String"/&gt;
      &lt;field name="numberIndex" class="java.lang.String"/&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/pageHeader&gt;
      &lt;columnHeader&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height="21" splitType="Stretch"&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-1" mode="Transparent" x="1" y="1" width="53" height="19" forecolor="#000000" backcolor="#FFFFFF" uuid="974d00c4-7438-4d1f-92ff-6b720e113ecd"/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.0" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$P{useNumberIndex}.booleanValue() ? $F{numberIndex} : $F{fieldC}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-2" mode="Transparent" x="53" y="1" width="297" height="19" forecolor="#000000" backcolor="#FFFFFF" uuid="6dee9995-5734-4e42-b7e1-4c2cbe02739b"/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.0" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{fieldB}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;subreport isUsingCache="true"&gt;
                  &lt;reportElement key="subreport-1" mode="Opaque" x="350" y="1" width="463" height="18" forecolor="#000000" backcolor="#FFFFFF" uuid="a40d7385-072d-4cfc-a952-88b23a906b85"/&gt;
                  &lt;subreportParameter name="name1"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$F{fieldD}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="name2"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$F{fieldE}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="Inform C"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{Inform C}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;dataSourceExpression&gt;&lt;![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((Collection) $F{fieldA})]]&gt;&lt;/dataSourceExpression&gt;
                  &lt;subreportExpression&gt;&lt;![CDATA[$P{Inform C}]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;columnFooter&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/columnFooter&gt;
      &lt;pageFooter&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/pageFooter&gt;
      &lt;summary&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  
  <p>4 - On <strong>Inform B</strong> there is a section filled by <strong>Inform C</strong> and on <strong>Inform C</strong>, the field that isn't display it's <em>extension</em>:</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="SubinformeAtribucionesPorPropietarios" pageWidth="463" pageHeight="842" columnWidth="463" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="92989482-f12d-409d-bbbc-5168396c7b22"&gt;
      &lt;property name="ireport.scriptlethandling" value="0"/&gt;
      &lt;property name="ireport.encoding" value="UTF-8"/&gt;
      &lt;property name="ireport.zoom" value="1.9487171000000016"/&gt;
      &lt;property name="ireport.x" value="0"/&gt;
      &lt;property name="ireport.y" value="0"/&gt;
      &lt;import value="net.sf.jasperreports.engine.*"/&gt;
      &lt;import value="java.util.*"/&gt;
      &lt;import value="net.sf.jasperreports.engine.data.*"/&gt;
      &lt;parameter name="paramA" class="java.lang.String" isForPrompting="false"/&gt;
      &lt;parameter name="paramB" class="java.lang.String" isForPrompting="false"/&gt;
      &lt;field name="fieldA" class="java.lang.String"/&gt;
      &lt;field name="fieldB" class="java.lang.String"/&gt;
      &lt;field name="fieldC" class="java.lang.String"/&gt;
      &lt;field name="fieldD" class="java.lang.String"/&gt;
      &lt;field name="extension" class="java.lang.String"/&gt;
      &lt;field name="fieldE" class="java.lang.String"/&gt;
      &lt;field name="fieldF" class="java.lang.String"/&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/pageHeader&gt;
      &lt;columnHeader&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height="17" splitType="Stretch"&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-1" mode="Transparent" x="0" y="0" width="109" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="4e1802bf-4ad3-4ed8-a378-e451866ef365"/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.0" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{fieldA}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-2" mode="Transparent" x="109" y="0" width="71" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="a87c767c-8b6e-4dcf-b397-2412a752acaa"/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.0" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{fieldD}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-3" mode="Transparent" x="180" y="0" width="71" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="82e3a926-8f8f-41af-b478-db4eed521356"/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.0" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{fieldC}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-4" mode="Transparent" x="251" y="0" width="71" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="b8954bd1-387e-4a5d-a762-9b1c19a86a78"/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.0" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{fieldB} + $F{fieldF}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-6" mode="Transparent" x="322" y="0" width="71" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="80594584-7236-407f-99b1-a5bd8b7cb91f"/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.0" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{extension}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-7" mode="Transparent" x="392" y="0" width="71" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="4792a89e-5852-4fcb-9f34-510d411a3cc3"/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.0" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{fieldE}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;columnFooter&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/columnFooter&gt;
      &lt;pageFooter&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/pageFooter&gt;
      &lt;lastPageFooter&gt;
          &lt;band height="22" splitType="Stretch"&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="221" y="3" width="101" height="17" uuid="45817d74-5748-40d9-ac2a-f07baa316e7e"/&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;font fontName="Arial" size="8" isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[Text]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-8" mode="Transparent" x="322" y="3" width="70" height="17" forecolor="#000000" backcolor="#FFFFFF" uuid="2d0cc5e5-1e50-4196-867f-a729d1c5a2f9"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$P{paramA}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField pattern="" isBlankWhenNull="false"&gt;
                  &lt;reportElement key="textField-9" mode="Transparent" x="392" y="3" width="71" height="17" forecolor="#000000" backcolor="#FFFFFF" uuid="19d787cb-e1df-473d-9f52-3c3aa7bed427"/&gt;
                  &lt;box&gt;
                      &lt;pen lineWidth="0.5"/&gt;
                      &lt;topPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/&gt;
                      &lt;bottomPen lineWidth="0.5" lineColor="#000000"/&gt;
                      &lt;rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"&gt;
                      &lt;font fontName="Arial" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/&gt;
                      &lt;paragraph lineSpacing="Single"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$P{paramB}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/lastPageFooter&gt;
      &lt;summary&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>