Jasper report : TextField Stretch inside Frame - jasper-reports

Hi I am using jasperreports verion + 5.0.1
I am trying to apply stretch for one of the text field.
I kept this frame in a detail band. Underneath this frame I have another frame.
My requirement here is to stretch the text field mailingAddress and agentAddress. These details will be exported into a PDF.
Which in-turn should stretch the frame along with the frames below need to be pushed accordingly in vertical position.
<frame>
<reportElement positionType="Float" x="0" y="66" width="802" height="14" isPrintWhenDetailOverflows="true" forecolor="#959595" uuid="063598fc-a760-48d4-86e1-c85da3ab415d">
<property name="com.jaspersoft.studio.unit.height" value="pixel" />
<property name="com.jaspersoft.studio.unit.y" value="px" />
<property name="com.jaspersoft.studio.layout" />
</reportElement>
<box>
<pen lineWidth="0.25" lineColor="#959595" />
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000" />
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#959595" />
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#959595" />
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#959595" />
</box>
<staticText>
<reportElement style="HeaderElement8x" x="4" y="1" width="70" height="13" isPrintWhenDetailOverflows="true" uuid="8908bd70-9665-4f4c-a501-e07ef7c96cce">
<property name="com.jaspersoft.studio.unit.height" value="px" />
<property name="com.jaspersoft.studio.unit.width" value="px" />
</reportElement>
<textElement verticalAlignment="Middle">
<font size="8" />
</textElement>
<text><![CDATA[Mailing Address:]]></text>
</staticText>
<textField textAdjust="StretchHeight">
<reportElement style="HeaderElementBold7x" positionType="Float" stretchType="RelativeToTallestObject" x="80" y="1" width="200" height="13" isPrintWhenDetailOverflows="true" uuid="e29aefcf-9df6-4dd8-a261-e5a9a7cf1659">
<property name="com.jaspersoft.studio.unit.width" value="px" />
<property name="com.jaspersoft.studio.unit.height" value="px" />
<property name="com.jaspersoft.studio.unit.x" value="px" />
</reportElement>
<textElement>
<font size="7" isBold="true" />
</textElement>
<textFieldExpression><![CDATA[$F{mailingAddress}]]></textFieldExpression>
</textField>
<staticText>
<reportElement style="HeaderElement8x" x="362" y="1" width="85" height="13" isPrintWhenDetailOverflows="true" uuid="74a57ccd-1001-46db-ac19-daab648cba60">
<property name="com.jaspersoft.studio.unit.height" value="px" />
<property name="com.jaspersoft.studio.unit.width" value="px" />
</reportElement>
<textElement verticalAlignment="Middle">
<font size="8" />
</textElement>
<text><![CDATA[Agent Address:]]></text>
</staticText>
<textField>
<reportElement style="HeaderElementBold7x" positionType="Float" stretchType="RelativeToTallestObject" x="448" y="1" width="200" height="13" isPrintWhenDetailOverflows="true" uuid="cc500f79-88a8-4357-845c-090fab89a0d2">
<property name="com.jaspersoft.studio.unit.height" value="px" />
<property name="com.jaspersoft.studio.unit.width" value="px" />
<property name="com.jaspersoft.studio.unit.x" value="px" />
</reportElement>
<textElement>
<font size="7" isBold="true" />
</textElement>
<textFieldExpression><![CDATA[$F{agentAddress}]]></textFieldExpression>
</textField>
</frame>
I tried following but it doesn't worked for me. Help me out with your suggestions please.
https://community.jaspersoft.com/questions/911866/stretch-text-field-data-overflow
How to expand frames dynamically in JasperReports?

Related

How do I prevent text overflowing into the next cell in a Jasper Report that exports to Excel?

I am creating a jrxml in Jaspersoft Studio that exports a table to Excel. When I view the Excel output, the data in the last column is overflowing into the next cell like so:
I am trying to prevent the data from overflowing into the next cell without wrapping the data in the cell.
I was able to find a reference for why Excel does overflow text: https://www.ablebits.com/office-addins-blog/stop-text-spilling-over-excel/
One of the solutions is to manually Format Cells and change horizontal text alignment to 'Fill'. This gives me the following table, which is exactly what I need:
However, I was not able to find a way to configure my jrxml to obtain this behavior. How may I create my jrxml such that it will export to Excel without overflowing text into adjacent columns (without wrapping the text)?
I don't think text alignment 'Fill' can be set when exporting to XLS.
One (kinda dirty) solution is having a 'blank' cell next to COL2 which will prevent the text in COL2 overflowing into the 'blank' cell.
Your example (modified):
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.20.0.final using JasperReports Library version 6.1.1 -->
<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="Blank_A4" pageWidth="240" pageHeight="400" columnWidth="200" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="af068097-e37b-4e41-9083-4c7b8e13c800">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="net.sf.jasperreports.export.xls.wrap.text" value="false"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<subDataset name="Dataset1" uuid="f12cc232-2035-43e1-b3e3-a446ee7318bf">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString>
<![CDATA[select 'abcdefghijklmnopqrstuvwxyz' as data1,
'abcdefghijklmnopqrstuvwxyz' as data2]]>
</queryString>
<field name="data1" class="java.lang.String"/>
<field name="data2" class="java.lang.String"/>
</subDataset>
<queryString>
<![CDATA[select 1]]>
</queryString>
<detail>
<band height="359" splitType="Stretch">
<componentElement>
<reportElement x="0" y="0" width="220" height="60" uuid="6a7376a7-6ee6-4e94-8e7b-024170505320">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<c:table xmlns:c="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
<datasetRun subDataset="Dataset1" uuid="0fee875c-6568-4a06-a8e4-f7fb34ebd4e5"/>
<c:column width="100" uuid="6517d845-8cbe-44b6-a644-cedfc40576c9">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/>
<c:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="30" forecolor="#FFFFFF" backcolor="#7845D9" uuid="f222fdba-a6db-46dd-97a5-e8e0181aa7e4">
<propertyExpression name="net.sf.jasperreports.export.xls.wrap.text"><![CDATA["true"]]></propertyExpression>
</reportElement>
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="1.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<text><![CDATA[COL1]]></text>
</staticText>
</c:columnHeader>
<c:detailCell height="30">
<textField isBlankWhenNull="true">
<reportElement mode="Opaque" x="0" y="0" width="100" height="30" uuid="2a235121-a4f3-487b-8138-edc5b5340e50"/>
<box>
<pen lineWidth="0.5"/>
</box>
<textElement verticalAlignment="Middle">
<paragraph leftIndent="3"/>
</textElement>
<textFieldExpression><![CDATA[$F{data1}]]></textFieldExpression>
</textField>
</c:detailCell>
</c:column>
<c:column width="100" uuid="23415ab5-ef42-4f13-9395-cc9bb019149a">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/>
<c:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="30" forecolor="#FFFFFF" backcolor="#7845D9" uuid="8ecbe731-1442-40b4-94a6-f3c57337704c">
<propertyExpression name="net.sf.jasperreports.export.xls.wrap.text"><![CDATA["true"]]></propertyExpression>
</reportElement>
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="1.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<text><![CDATA[COL2]]></text>
</staticText>
</c:columnHeader>
<c:detailCell height="30">
<textField isBlankWhenNull="true">
<reportElement mode="Opaque" x="0" y="0" width="100" height="30" uuid="c8f16b37-4f63-4043-abc6-d321125c247e"/>
<box>
<pen lineWidth="0.5"/>
</box>
<textElement verticalAlignment="Middle">
<paragraph leftIndent="3"/>
</textElement>
<textFieldExpression><![CDATA[$F{data2}]]></textFieldExpression>
</textField>
</c:detailCell>
</c:column>
<c:column width="20" uuid="4fff907e-9cb8-41d3-a264-b78ca5ed814a">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column3"/>
<c:columnHeader height="30" rowSpan="1"/>
<c:detailCell height="30">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<textField>
<reportElement x="0" y="0" width="20" height="30" uuid="eb0dd902-0635-4a55-8f84-03834107f2bf"/>
<textFieldExpression><![CDATA[""]]></textFieldExpression>
</textField>
</c:detailCell>
</c:column>
</c:table>
</componentElement>
</band>
</detail>
</jasperReport>

How to create a table with repeating the parent element values in Jasper report

I have a requirement to create a table using JSON data using Jasperstudio 6.2.12 and export it to .xlsx format. I'm able to create the table as shown below:
The requirement I have is to iterate the values in A, B, C, and D columns based on the number of rows in the E and F columns. The expected output is:
The JSON data I've used to print the table is :
{
"root": [{
"firstName": "John",
"lastName": "Doe",
"accounts": [{
"bank": "LLOYDS",
"accountNumber": 123456,
"references": [{
"name": "Eva Doe",
"refAccountNumber": 6549873
},
{
"name": "Robin Doe",
"refAccountNumber": 3216545
},
{
"name": "Peter Doe",
"refAccountNumber": 9876549
}
]
}]
},
{
"firstName": "James",
"lastName": "Doe",
"accounts": [{
"bank": "HSBC",
"accountNumber": 654321,
"references": [{
"name": "Sam Doe",
"refAccountNumber": 6549873
},
{
"name": "Roger Doe",
"refAccountNumber": 3216545
},
{
"name": "Jason Doe",
"refAccountNumber": 9876549
}
]
}]
}
]}
JRXML:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.13.0.final using JasperReports Library version 6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05 -->
<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="accounts" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="066cfa9f-bcf0-4095-8d82-a5ef1cb8632d">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Test"/>
<property name="net.sf.jasperreports.export.xls.one.page.per.sheet" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<property name="net.sf.jasperreports.export.xls.white.page.background" value="false"/>
<property name="net.sf.jasperreports.export.xls.detect.cell.type" value="true"/>
<property name="net.sf.jasperreports.export.xls.ignore.graphics" value="false"/>
<property name="net.sf.jasperreports.page.break.no.pagination" value="apply"/>
<property name="net.sf.jasperreports.export.xls.sheet.names.all" value="Accounts"/>
<property name="net.sf.jasperreports.export.xls.freeze.row" value="1"/>
<property name="net.sf.jasperreports.print.keep.full.text" value="true"/>
<property name="net.sf.jasperreports.exports.xls.font.size.fix.enabled" value="false"/>
<property name="maximumRowsPerSheet" value="0"/>
<style name="Table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<subDataset name="AccountsDataset" uuid="73085770-27bc-42cb-b4db-edc97074de2c">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Test"/>
<queryString language="json">
<![CDATA[root.accounts]]>
</queryString>
<field name="bank" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="bank"/>
<fieldDescription><![CDATA[bank]]></fieldDescription>
</field>
<field name="accountNumber" class="java.lang.Integer">
<property name="net.sf.jasperreports.json.field.expression" value="accountNumber"/>
<fieldDescription><![CDATA[accountNumber]]></fieldDescription>
</field>
<field name="accoutType" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="accoutType"/>
<fieldDescription><![CDATA[accoutType]]></fieldDescription>
</field>
<field name="references" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="references"/>
<fieldDescription><![CDATA[references]]></fieldDescription>
</field>
</subDataset>
<subDataset name="ReferencesDataset" uuid="b23c5f84-b106-4d89-a5d4-6287aa8bbdf7">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Test"/>
<queryString language="json">
<![CDATA[root.accounts.references]]>
</queryString>
<field name="name" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="name"/>
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="refAccountNumber" class="java.lang.Integer">
<property name="net.sf.jasperreports.json.field.expression" value="refAccountNumber"/>
<fieldDescription><![CDATA[refAccountNumber]]></fieldDescription>
</field>
</subDataset>
<subDataset name="MainDataset" uuid="ab297ea1-81e6-4a6f-b90c-4ce1fb9521a2">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Test"/>
<queryString language="json">
<![CDATA[root]]>
</queryString>
<field name="firstName" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="firstName"/>
<fieldDescription><![CDATA[firstName]]></fieldDescription>
</field>
<field name="lastName" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="lastName"/>
<fieldDescription><![CDATA[lastName]]></fieldDescription>
</field>
<field name="email" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="email"/>
<fieldDescription><![CDATA[email]]></fieldDescription>
</field>
<field name="accounts" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="accounts"/>
<fieldDescription><![CDATA[accounts]]></fieldDescription>
</field>
</subDataset>
<queryString language="json">
<![CDATA[]]>
</queryString>
<field name="root" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="root"/>
<fieldDescription><![CDATA[root]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<detail>
<band height="254" splitType="Stretch">
<componentElement>
<reportElement x="0" y="0" width="480" height="60" uuid="268fe625-e43f-48d5-90c7-f396d09cd88d">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
<property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
<property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
<property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
</reportElement>
<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">
<datasetRun subDataset="MainDataset" uuid="67830a07-2594-4532-ae34-96829b8046da">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("root")]]></dataSourceExpression>
</datasetRun>
<jr:column width="80" uuid="a8cf3aa0-1633-4f19-a908-6efbf55d2f75">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="b89609d4-5cbb-4f5b-b470-c9f9f4ad9d26"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[First Name]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="ec954e2c-43e4-43ba-9005-03272b9daad5"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{firstName}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="e7f5cfca-a803-485d-be01-5d2f785fbf0b">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="0a2eb2ed-75b9-46c3-8751-871c5473c3e1"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Last Name]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="767b9d15-53e5-4a0b-be8c-ec94fc6398f8"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{lastName}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="c7103510-df1d-4c31-a30f-9b726540dd7a">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column3"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="11192151-2c03-4590-91f7-87021b022301"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Bank]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<componentElement>
<reportElement x="0" y="0" width="80" height="30" uuid="8b2678af-1b87-49e6-aca2-af0cec3d7a46"/>
<jr:list printOrder="Vertical">
<datasetRun subDataset="AccountsDataset" uuid="faa7fa1c-7169-48fb-aac2-7483a2477998">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("accounts")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="30" width="80">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="97ec29f7-36f2-4ecc-9f30-3049e0648e97"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{bank}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="5a4bb23a-7d61-486b-91f8-b5150cb85817">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column4"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="30680d44-df3b-484e-b059-399e0a21b304"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Account Number]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<componentElement>
<reportElement x="0" y="0" width="80" height="30" uuid="d7780443-ba11-4d20-944d-4f8210a74506"/>
<jr:list printOrder="Vertical">
<datasetRun subDataset="AccountsDataset" uuid="2c245f1d-7a8f-46dc-85c3-737b5b0bc5a1">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("accounts")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="30" width="80">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="ba6b13f3-770d-4a02-b3f0-5d4293393cd3"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{accountNumber}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="0720c554-a0af-4192-a669-38cea560a2e2">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column5"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="98adb234-9003-4704-85e4-295538f4273c"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Ref Name]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<componentElement>
<reportElement x="0" y="0" width="80" height="30" uuid="faf83492-91ac-4a39-9483-512d6555c3d3"/>
<jr:list printOrder="Vertical">
<datasetRun subDataset="ReferencesDataset" uuid="832a218b-199c-4055-9891-0afaf629bf50">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("accounts.references")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="30" width="80">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="955502f3-afec-40aa-a8f8-b5e83d43bcbc"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="2aed257e-00f2-4594-a9ac-9b504262ee3e">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column6"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="be058bb0-b9f3-4b41-b074-c1f44350eb09"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Ref Account Number]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<componentElement>
<reportElement x="0" y="0" width="80" height="30" uuid="ed5f0c5e-8f14-4565-8159-b7528e035f3c"/>
<jr:list printOrder="Vertical">
<datasetRun subDataset="ReferencesDataset" uuid="2c2d0c12-930c-45c5-a3a1-f8228fc78d7f">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("accounts.references")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="30" width="80">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="59563298-0f0f-4b62-b263-511abb945d1a"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{refAccountNumber}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</band>
</detail>
</jasperReport>
Please help me to iterate the values in A, B, C, and D columns based on the number of rows in the E and F columns and get the expected output. Thank you all so much!
The easiest way to do this is to use a single subdataset that has the fields from all levels of the JSON tree. To do that you'll have to switch to the JSONQL query executer, which allows you to map fields from the parent nodes of the ones selected by the data source.
Once you have all the fields in a single dataset, you can use a simple table to display them.
The report would look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.13.0.final using JasperReports Library version 6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05 -->
<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="accounts" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="066cfa9f-bcf0-4095-8d82-a5ef1cb8632d">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Test"/>
<property name="net.sf.jasperreports.export.xls.one.page.per.sheet" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<property name="net.sf.jasperreports.export.xls.white.page.background" value="false"/>
<property name="net.sf.jasperreports.export.xls.detect.cell.type" value="true"/>
<property name="net.sf.jasperreports.export.xls.ignore.graphics" value="false"/>
<property name="net.sf.jasperreports.page.break.no.pagination" value="apply"/>
<property name="net.sf.jasperreports.export.xls.sheet.names.all" value="Accounts"/>
<property name="net.sf.jasperreports.export.xls.freeze.row" value="1"/>
<property name="net.sf.jasperreports.print.keep.full.text" value="true"/>
<property name="net.sf.jasperreports.exports.xls.font.size.fix.enabled" value="false"/>
<property name="maximumRowsPerSheet" value="0"/>
<style name="Table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<subDataset name="ReferencesDataset" uuid="b23c5f84-b106-4d89-a5d4-6287aa8bbdf7">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Test"/>
<queryString language="jsonql">
<![CDATA[root.accounts.references]]>
</queryString>
<field name="firstName" class="java.lang.String">
<property name="net.sf.jasperreports.jsonql.field.expression" value="^^^^.firstName"/>
<fieldDescription><![CDATA[firstName]]></fieldDescription>
</field>
<field name="lastName" class="java.lang.String">
<property name="net.sf.jasperreports.jsonql.field.expression" value="^^^^.lastName"/>
<fieldDescription><![CDATA[lastName]]></fieldDescription>
</field>
<field name="bank" class="java.lang.String">
<property name="net.sf.jasperreports.jsonql.field.expression" value="^^.bank"/>
<fieldDescription><![CDATA[bank]]></fieldDescription>
</field>
<field name="accountNumber" class="java.lang.Integer">
<property name="net.sf.jasperreports.jsonql.field.expression" value="^^.accountNumber"/>
<fieldDescription><![CDATA[accountNumber]]></fieldDescription>
</field>
<field name="name" class="java.lang.String">
<property name="net.sf.jasperreports.jsonql.field.expression" value="name"/>
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="refAccountNumber" class="java.lang.Integer">
<property name="net.sf.jasperreports.jsonql.field.expression" value="refAccountNumber"/>
<fieldDescription><![CDATA[refAccountNumber]]></fieldDescription>
</field>
</subDataset>
<queryString language="jsonql">
<![CDATA[]]>
</queryString>
<field name="root" class="java.lang.String">
<property name="net.sf.jasperreports.json.field.expression" value="root"/>
<fieldDescription><![CDATA[root]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<detail>
<band height="254" splitType="Stretch">
<componentElement>
<reportElement x="0" y="0" width="480" height="60" uuid="268fe625-e43f-48d5-90c7-f396d09cd88d">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
<property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
<property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
<property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
</reportElement>
<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">
<datasetRun subDataset="ReferencesDataset" uuid="67830a07-2594-4532-ae34-96829b8046da">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("root.accounts.references.*")]]></dataSourceExpression>
</datasetRun>
<jr:column width="80" uuid="a8cf3aa0-1633-4f19-a908-6efbf55d2f75">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="b89609d4-5cbb-4f5b-b470-c9f9f4ad9d26"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[First Name]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="ec954e2c-43e4-43ba-9005-03272b9daad5"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{firstName}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="e7f5cfca-a803-485d-be01-5d2f785fbf0b">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="0a2eb2ed-75b9-46c3-8751-871c5473c3e1"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Last Name]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="767b9d15-53e5-4a0b-be8c-ec94fc6398f8"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{lastName}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="c7103510-df1d-4c31-a30f-9b726540dd7a">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column3"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="11192151-2c03-4590-91f7-87021b022301"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Bank]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="97ec29f7-36f2-4ecc-9f30-3049e0648e97"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{bank}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="5a4bb23a-7d61-486b-91f8-b5150cb85817">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column4"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="30680d44-df3b-484e-b059-399e0a21b304"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Account Number]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="ba6b13f3-770d-4a02-b3f0-5d4293393cd3"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{accountNumber}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="0720c554-a0af-4192-a669-38cea560a2e2">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column5"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="98adb234-9003-4704-85e4-295538f4273c"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Ref Name]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="955502f3-afec-40aa-a8f8-b5e83d43bcbc"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="2aed257e-00f2-4594-a9ac-9b504262ee3e">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column6"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="80" height="30" uuid="be058bb0-b9f3-4b41-b074-c1f44350eb09"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Ref Account Number]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="30">
<textField>
<reportElement x="0" y="0" width="80" height="30" uuid="59563298-0f0f-4b62-b263-511abb945d1a"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{refAccountNumber}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</band>
</detail>
</jasperReport>

JasperReport does not show table

I'am using Jasper studio to generate pdf template. I added a table in this template without sources or database conenction but in jasper does not show the table. Below is my jrxml file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.11.0.final using JasperReports Library version 6.11.0-0c4056ccaa4d25a5a8c45672d2f764ea3498bebb -->
<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="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="06cb70de-815a-4623-b868-91a92feca771">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<style name="Table_TH" mode="Opaque" backcolor="#549BDE">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_CH" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<subDataset name="Dataset1" uuid="d011bfa0-d2bd-475d-b7d1-4d69deec36be">
<queryString>
<![CDATA[]]>
</queryString>
</subDataset>
<subDataset name="Dataset2" uuid="563537d5-3b04-4cb9-93d6-4eb48c6fb5c7">
<queryString>
<![CDATA[]]>
</queryString>
</subDataset>
<subDataset name="Dataset3" uuid="fa68464d-99c7-4751-8e25-f173ce78f908">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString>
<![CDATA[]]>
</queryString>
</subDataset>
<subDataset name="tableActiviteValide" uuid="bc90850c-a424-455b-8cb5-dd5df5282de5">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString>
<![CDATA[]]>
</queryString>
</subDataset>
<parameter name="codeTournee" class="java.lang.String"/>
<parameter name="dateTournee" class="java.lang.String"/>
<parameter name="heureDepartTournee" class="java.lang.String"/>
<parameter name="heureDuPremierPoint" class="java.lang.String"/>
<parameter name="nbPointsPrevu" class="java.lang.String"/>
<parameter name="nomChauffeur" class="java.lang.String"/>
<parameter name="respectETA" class="java.lang.String"/>
<parameter name="statutTournee" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="51" splitType="Stretch">
<staticText>
<reportElement x="120" y="-16" width="320" height="66" uuid="240b4bfe-6b32-4a96-8bf1-69ba08f35e74"/>
<textElement textAlignment="Center">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Contôle retour collecte
Impression de la synthèse de l'activité]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="50" splitType="Stretch">
<textField>
<reportElement x="-16" y="10" width="237" height="40" uuid="9aa786c1-e331-4790-99cc-d509a0f8626c"/>
<textFieldExpression><![CDATA[new java.lang.String("Impression de ") + java.time.format.DateTimeFormatter.ofPattern("dd/MM/YYYY").format(java.time.LocalDate.now()) + new java.lang.String(" à ") + java.time.format.DateTimeFormatter.ofPattern("HH:mm").format(java.time.LocalTime.now())]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="220" splitType="Stretch">
<rectangle>
<reportElement x="10" y="20" width="535" height="190" uuid="58a48853-5a63-485a-8dd5-a4e3a36076c8"/>
<graphicElement>
<pen lineStyle="Solid"/>
</graphicElement>
</rectangle>
<staticText>
<reportElement x="30" y="48" width="60" height="20" uuid="ac6227f3-aa2c-4355-93c2-a3a67aacd2b1"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Tournée:]]></text>
</staticText>
<textField>
<reportElement x="169" y="48" width="60" height="20" uuid="3e0708e0-cc0f-4282-9e60-fa962be46bc9">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{codeTournee}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="30" y="80" width="60" height="20" uuid="a794c118-84d7-4f73-a87c-42366cc1d5fa"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Date:]]></text>
</staticText>
<staticText>
<reportElement x="30" y="110" width="120" height="20" uuid="fdfc42f2-30ca-4302-bb43-2e0b453cedf6"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Heure de départ:]]></text>
</staticText>
<staticText>
<reportElement x="30" y="140" width="136" height="20" uuid="f7abe915-02c3-4b85-839a-b528e4d7692b"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Heure du 1er point:]]></text>
</staticText>
<staticText>
<reportElement x="30" y="170" width="136" height="20" uuid="331e25b0-d0ef-461b-974b-f8a676b42505"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Nb points prévus:]]></text>
</staticText>
<textField>
<reportElement x="169" y="80" width="60" height="20" uuid="d75802b2-b117-4b79-9929-fe76fa8a594b">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$P{dateTournee}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="169" y="110" width="60" height="20" uuid="1264ce76-8691-4b1e-9fad-0bb2ec2b5780">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$P{heureDepartTournee}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="169" y="140" width="60" height="20" uuid="501a135a-f70c-4572-b9a1-becaada10c91">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$P{heureDuPremierPoint}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="169" y="170" width="60" height="20" uuid="6be68507-0e04-439a-a94e-3fb29c6b046f">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$P{nbPointsPrevu}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="300" y="48" width="60" height="20" uuid="d2e71c08-f045-4d9a-a478-eb2814ae58ab"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Nom:]]></text>
</staticText>
<textField>
<reportElement x="400" y="48" width="60" height="20" uuid="e8878870-3bcc-4237-8ba7-fb1eecd96482">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{nomChauffeur}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="300" y="140" width="90" height="20" uuid="91532fe1-2320-4f0f-ab7d-c69d98198911"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[RespectETA:]]></text>
</staticText>
<staticText>
<reportElement x="300" y="170" width="90" height="20" uuid="3e2d848e-9be5-47fb-aa9a-47c7634869fa"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Statut Tournée:]]></text>
</staticText>
<textField>
<reportElement x="400" y="140" width="60" height="20" uuid="92b863f7-011e-4a25-8e23-0d89066db13a">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{respectETA}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="400" y="170" width="60" height="20" uuid="9091a71f-fa56-413a-b0ed-31d57c34f1e9">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{respectETA}]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="353" splitType="Stretch">
<staticText>
<reportElement x="10" y="4" width="534" height="66" uuid="8d8baf3e-51bf-436a-9691-dfda004dce54"/>
<text><![CDATA[Attention, les informations données à titre d'information pour permettre de mieux gérer l'activité sont susceptibles d'être modifiées à la suite du contrôle back-office, l'agence reste à votre disposition.]]></text>
</staticText>
<componentElement>
<reportElement x="20" y="80" width="311" height="85" uuid="52b7823f-9442-433e-b665-1398b400ae88">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
<property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
<property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
<property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
</reportElement>
<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">
<datasetRun subDataset="tableActiviteValide" uuid="5ac2165e-840c-4a99-9511-4bd1a604f544">
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>
<jr:column width="40" uuid="ee0f7403-3157-4b14-aeaa-c8fb9dc5a97b">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne1"/>
<jr:tableHeader style="Table_TH" height="60" rowSpan="2"/>
<jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1"/>
<jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
<jr:detailCell style="Table_TD" height="30"/>
</jr:column>
<jr:column width="40" uuid="a9e963ba-1a80-4a5d-85b8-1d0d14e0ff05">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne2"/>
<jr:tableHeader style="Table_TH" height="60" rowSpan="2"/>
<jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1"/>
<jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
<jr:detailCell style="Table_TD" height="30"/>
</jr:column>
<jr:column width="40" uuid="78afc7bc-a1f8-4fa8-aeac-311be51643c4">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne3"/>
<jr:tableHeader style="Table_TH" height="60" rowSpan="2"/>
<jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1"/>
<jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
<jr:detailCell style="Table_TD" height="30"/>
</jr:column>
<jr:columnGroup width="80" uuid="7c6c7ce4-2a9a-4735-b4ce-55e99ff0379f">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonnes [2]"/>
<jr:tableHeader style="Table_TH" height="30" rowSpan="1"/>
<jr:column width="40" uuid="8033f192-d8fb-46f2-a87f-5acba54f6138">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne4"/>
<jr:tableHeader style="Table_TH" height="30" rowSpan="1"/>
<jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1"/>
<jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
<jr:detailCell style="Table_TD" height="30"/>
</jr:column>
<jr:column width="40" uuid="5f31f40c-f884-4ec1-a2f7-4cda37699e00">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne5"/>
<jr:tableHeader style="Table_TH" height="30" rowSpan="1"/>
<jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1"/>
<jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
<jr:detailCell style="Table_TD" height="30"/>
</jr:column>
</jr:columnGroup>
<jr:column width="40" uuid="723c94fd-6ccc-4f10-b827-18477cc941fb">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne6"/>
<jr:tableHeader style="Table_TH" height="60" rowSpan="2"/>
<jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1"/>
<jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
<jr:detailCell style="Table_TD" height="30"/>
</jr:column>
<jr:column width="40" uuid="4aea6eaf-a426-4be7-829a-a9b94c1b5777">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne7"/>
<jr:tableHeader style="Table_TH" height="60" rowSpan="2"/>
<jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1"/>
<jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
<jr:detailCell style="Table_TD" height="30"/>
</jr:column>
</jr:table>
</componentElement>
</band>
</detail>
<columnFooter>
<band height="45" splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="54" splitType="Stretch"/>
</pageFooter>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>
There is no problem that had been shown in my report and the table is not visible in my template. How Can i resolve this?
Thank's!
You have to give some data to the table, otherwise jasper don't show it because nothing is to show when you give no data.

Why is my title not showing in Jasper Reports? [duplicate]

This question already has answers here:
jasper ireport create a report with parameters without sql query
(1 answer)
Why Jasper Reports shows empty report in server, but generates correctly in jasper studio
(2 answers)
Getting blank report generated in JasperReports using bean datasource and subreports
(1 answer)
My Jasper Template shows no text
(1 answer)
Closed 3 years ago.
I have a Jasper Report that has a title followed by details. When there are details in the report, the title shows. But when the report has no details, the title does not show.
I would like the title to be fixed, so that it shows no matter whether there are details or not. I already have it configured this way for a separate report. The only difference between the two reports is that the second report (which has a fixed header that shows no matter what) does not use frames, whereas this report (the problematic one) does use frames.
Here is the XML for the title section of my problematic report that does not show a fixed header.
Any idea why the title is not showing in the case that there are no report details? I do use static text, after all... I'm not sure why the static text doesn't show.
<title>
<band height="60" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<frame>
<reportElement style="Title" mode="Opaque" x="0" y="0" width="800" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="f5eeff7b-82c8-4e5e-b89f-c8f4e0bf230e">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<box padding="1">
<pen lineWidth="0.5" lineColor="#666666"/>
<topPen lineWidth="0.5" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.5" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#666666"/>
</box>
<staticText>
<reportElement x="332" y="0" width="134" height="20" uuid="ff17f385-30ec-417d-bf55-2f79996f0ca9">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Sign Audit Report]]></text>
</staticText>
</frame>
<frame>
<reportElement mode="Opaque" x="0" y="20" width="800" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="f9c0304d-0864-46b3-8b18-b28b20d8c7de">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<box padding="1">
<pen lineWidth="0.5" lineColor="#666666"/>
<topPen lineWidth="0.5" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.5" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#666666"/>
</box>
<textField>
<reportElement x="299" y="0" width="190" height="19" uuid="ace3db7b-5c61-4205-98e9-872483bc9206"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$P{STORE_ID} +" - "+$P{STORE_NAME}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement mode="Opaque" x="0" y="40" width="800" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="b0c895f6-6dbd-477d-9858-9ad66af087e1">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<box padding="1">
<pen lineWidth="0.5" lineColor="#666666"/>
</box>
<staticText>
<reportElement x="0" y="0" width="99" height="20" uuid="d37d9a5e-2dad-4774-8b62-87a458b25902">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font size="10"/>
</textElement>
<text><![CDATA[Report generated on :]]></text>
</staticText>
<textField pattern="MM/dd/yyyy">
<reportElement x="99" y="0" width="122" height="20" uuid="e4e59db3-b1d7-4f84-8052-96d6c4ea34a1">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[new java.text.SimpleDateFormat($P{DATE_FORMAT_PARAM}).format(new Date())]]></textFieldExpression>
</textField>
<textField pattern="MM/dd/yyyy">
<reportElement x="641" y="0" width="150" height="20" uuid="98a8efa4-19ae-4d06-8874-12482bd8aeb1">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[new java.text.SimpleDateFormat($P{DATE_FORMAT_PARAM}).format($P{effStartDate})+" - "+new java.text.SimpleDateFormat($P{DATE_FORMAT_PARAM}).format($P{endDate})]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="579" y="0" width="64" height="20" uuid="6dfe0bf6-cd90-48b2-9cc9-7bad865a9c66">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font size="10"/>
</textElement>
<text><![CDATA[Signs Active :]]></text>
</staticText>
</frame>
</band>
</title>

How to prevent blank page at the end with jasperreports

I have a report containing a table with dynamic content on the left side and a frame containing static fixed size text on the right side:
Below you find the jrxml source (I removed the title and three columns of the table to reduce the size):
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.3.1.final using JasperReports Library version 6.3.1 -->
<!-- 2017-08-10T11:19:14 -->
<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="WaterlevelForecastReport" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isSummaryNewPage="true" resourceBundle="messages" whenResourceMissingType="Empty" uuid="3cf70749-5058-4a53-ad3e-091553a6ed3e">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<style name="Table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_CH" mode="Opaque" backcolor="#BFE1FF" hTextAlign="Center" vTextAlign="Middle" isBlankWhenNull="true" fontName="Arial" fontSize="8" isBold="false">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="DataStyle" hTextAlign="Center" isBlankWhenNull="true" fontName="Arial" fontSize="8" isBold="false"/>
<subDataset name="WaterLevelForecastDataSet" uuid="01de13e9-d88f-4fef-b1bf-4de28bf02e6a">
<parameter name="waterlevelForecastData" class="com.example.reporting.WaterlevelForecastReportService.WaterlevelForecastData">
<parameterDescription><![CDATA[]]></parameterDescription>
</parameter>
<field name="waterLevel" class="com.example.WaterLevelForecast">
<fieldDescription><![CDATA[_THIS]]></fieldDescription>
</field>
</subDataset>
<parameter name="logo" class="Object" isForPrompting="false">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<queryString>
<![CDATA[]]>
</queryString>
<field name="waterlevelForecastData" class="com.example.reporting.WaterlevelForecastReportService.WaterlevelForecastData">
<fieldDescription><![CDATA[_THIS]]></fieldDescription>
</field>
<detail>
<band height="200">
<frame>
<reportElement x="0" y="0" width="100" height="42" uuid="a532b32e-a9e0-427b-84c4-d60fe9589d84">
<property name="local_mesure_unitx" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="local_mesure_unitwidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<componentElement>
<reportElement x="0" y="0" width="100" height="42" isRemoveLineWhenBlank="true" uuid="f4166ea1-a21d-4ed8-8f16-02ae243c81f1">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
<property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
<property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
<property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
<property name="net.sf.jasperreports.export.headertoolbar.table.name" value=""/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<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">
<datasetRun subDataset="WaterLevelForecastDataSet" uuid="15b7c136-4802-4b6b-bd8c-cbde01ec9bed">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{waterlevelForecastData}.getWaterlevelForecastList())]]></dataSourceExpression>
</datasetRun>
<jr:column width="100" uuid="d70db54d-dd19-40c3-a36c-1d9592008fcc">
<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement style="Table_CH" x="0" y="0" width="100" height="30" uuid="7fa06c16-b4cc-450e-a204-6fe97e18c1a4">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<text><![CDATA[Datum]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="12">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<textField isStretchWithOverflow="true">
<reportElement style="DataStyle" x="0" y="0" width="100" height="12" uuid="75c92bc7-279f-4ea5-95dd-2005b43669f2">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textFieldExpression><![CDATA[new java.text.SimpleDateFormat("E dd.MM.yyyy", $P{REPORT_LOCALE}).format($F{waterLevel}.getTime())]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</frame>
<frame>
<reportElement positionType="Float" x="570" y="0" width="230" height="200" uuid="386949ed-e289-4e9d-82af-54f7a1afbb6e"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<staticText>
<reportElement style="DataStyle" x="11" y="11" width="59" height="12" uuid="a63c6262-34f9-4731-9ad4-22bf6a2a54d2"/>
<textElement textAlignment="Left"/>
<text><![CDATA[Pegelort:]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="31" width="59" height="12" uuid="d56daa72-b14f-442b-8868-4bba5601f47f"/>
<textElement textAlignment="Left"/>
<text><![CDATA[Position:]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="51" width="58" height="12" uuid="056f6c4b-375e-4d88-8aa4-900da296b655"/>
<textElement textAlignment="Left"/>
<text><![CDATA[MHW (mPN):]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="71" width="57" height="12" uuid="30d9f8de-2612-4c2a-b319-39b01f6d2809"/>
<textElement textAlignment="Left"/>
<text><![CDATA[MNW (mPN):]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="91" width="57" height="12" uuid="51b3bc61-c9f3-4b48-9f72-df980ea80c2e"/>
<textElement textAlignment="Left"/>
<text><![CDATA[PN (mNN):]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="111" width="218" height="12" uuid="ddaea131-e7f8-4215-bada-f489b37896a9"/>
<textElement textAlignment="Left"/>
<text><![CDATA[Der Wasserstand bezieht sich auf Pegelnull.]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="123" width="29" height="12" uuid="54323c5e-1213-441f-9bda-41b6415d9158"/>
<textElement textAlignment="Left"/>
<text><![CDATA[HW]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="135" width="29" height="12" uuid="9974d608-8a33-4f35-ae72-07388f9ae138"/>
<textElement textAlignment="Left"/>
<text><![CDATA[NW]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="147" width="29" height="12" uuid="428c7ee2-46c1-4008-b355-8ac357c51057"/>
<textElement textAlignment="Left"/>
<text><![CDATA[MHW]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="159" width="29" height="12" uuid="81b95147-96f0-4227-b9a9-cf51c5db0c8c"/>
<textElement textAlignment="Left"/>
<text><![CDATA[MNW]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="183" width="29" height="12" uuid="38ef4fc2-05dd-4aae-8510-c50002d2492e"/>
<textElement textAlignment="Left"/>
<text><![CDATA[NN]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="11" y="171" width="29" height="12" uuid="8c9e77a4-65ea-4ef4-b8e4-b4b3620c3f0e"/>
<textElement textAlignment="Left"/>
<text><![CDATA[PN]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="40" y="123" width="160" height="12" uuid="66fd279e-95db-4970-b70f-aaa298929472"/>
<textElement textAlignment="Left"/>
<text><![CDATA[= Hochwasser]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="40" y="135" width="160" height="12" uuid="03b13ac8-169c-419c-a407-749b41c55f4a"/>
<textElement textAlignment="Left"/>
<text><![CDATA[= Niedrigwasser]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="40" y="147" width="160" height="12" uuid="f5bc3c27-f772-44d7-8679-f69a52d0f3e8"/>
<textElement textAlignment="Left"/>
<text><![CDATA[= Mittleres Hochwasser]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="40" y="159" width="160" height="12" uuid="8124681f-f321-4cde-986b-458318ef925f"/>
<textElement textAlignment="Left"/>
<text><![CDATA[= Mittleres Niedrigwasser]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="40" y="171" width="160" height="12" uuid="8bd1a23e-b9a6-48c9-afc3-8d01a901327a"/>
<textElement textAlignment="Left"/>
<text><![CDATA[= Pegelnull]]></text>
</staticText>
<staticText>
<reportElement style="DataStyle" x="40" y="183" width="160" height="12" uuid="96bb6dce-c1cd-490b-93f5-5aca18234fe2"/>
<textElement textAlignment="Left"/>
<text><![CDATA[= Normalnull]]></text>
</staticText>
</frame>
</band>
</detail>
<pageFooter>
<band height="30">
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" x="0" y="10" width="800" height="20" uuid="0d80af3a-fdab-42df-a876-9debf03164e8">
<property name="local_mesure_unitx" value="pixel"/>
<property name="local_mesure_unity" value="pixel"/>
<property name="local_mesure_unitwidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="Arial" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.hvcc.disclaimer}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
If I generate a PDF file from this report template, I'm always getting a blank page at the end, containing only the page footer and no content.
For my understanding this is because of the space between the table on the left side and the bottom of detail band 1, that will be added to the end of the table when the report is generated. So if the table and the space below is to large for one page, an additional page is added to the PDF containing only the space and footer.
If I remove the frame on the right side and reduce the height of detail band 1 to the end of the table, everything is fine and no extra page will be added. But I need this space in the report template because of the frame on the right side containing the static text.
How can I change the report template to reduce the height of detail band 1, so that no space below the table will be added to the PDF but with no effect to the definition of the frame on the right side?
I tried it many times by changing the stretch and overflow options but I'm always getting a blank page at the end.
Workaround
If I use a subreport for the frame on the right side and setting the height of the subreport element to the same height of the table on the left side, the height of detail band 1 can be reduced to the end of table and in the generated report no space will be added after the table and no extra page will be rendered.
But I thought there is a possibility to achieve this without using subreports.