version compatibility issues with jasper reports and iReport - jasper-reports

I have an existing jrxml files which is formatted like the code below:
<band height="25" isSplitAllowed="true">
<rectangle radius="0">
<reportElement key="rectangle-2" mode="Opaque" x="0" y="0" width="782" height="25" forecolor="#000000" backcolor="#EAECEF"/>
<graphicElement fill="Solid">
<pen lineWidth="0.5" lineStyle="Solid"/>
</graphicElement>
</rectangle>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement key="textField-4" mode="Opaque" x="2" y="2" width="774" height="20" forecolor="#000000" backcolor="#EAECEF"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>....
<leftPen lineWidth=
When I edit the jrxml file using iReport 3.7.0 or 4.1.1 it will change the format of that xml to the something below:
<band height="25" splitType="Stretch">
<rectangle radius="0">
<reportElement key="rectangle-2" mode="Opaque" x="0" y="0" width="782" height="25" forecolor="#000000" backcolor="#EAECEF"/>
<graphicElement fill="Solid">
<pen lineWidth="0.5" lineStyle="Solid"/>
</graphicElement>
</rectangle>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement key="textField-4" mode="Opaque" x="2" y="2" width="774" height="20" forecolor="#000000" backcolor="#EAECEF"/>
<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="#FFFFFF"/>
</box>
How can I preserve the format of the jrxml file?

Related

why is my report broken from JasperReports 6.2.2+?

I have some report that has been used for 10+ years in some application.
When upgrading to any JaseperReports library version >= 6.2.2, the vertical alignment is badly broken (most of the times, not always).
6.2.1:
6.2.2:
Here is the relevant part of my report source:
<group name="invoiceIdGroup" isStartNewPage="true">
<groupExpression><![CDATA[$F{id}]]></groupExpression>
<groupHeader>
<band height="184" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement key="textField" x="0" y="137" width="505" height="30" uuid="0d38b823-8fc5-4a5d-b49c-fc193e073874"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{description}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement key="textField" x="126" y="54" width="148" height="18" uuid="5e6904a9-46c9-4f2e-85a0-643246c93b11"/>
<box topPadding="2" leftPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textFieldExpression><![CDATA[$F{invoiceDate}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement key="textField" x="126" y="72" width="148" height="18" uuid="f35901b0-c118-4f69-aa00-770505271ab8"/>
<box topPadding="2" leftPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textFieldExpression><![CDATA[$F{echeance}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement key="textField" x="126" y="108" width="148" height="18" uuid="02715d59-826b-4599-9cba-1838c7e963d5"/>
<box topPadding="2" leftPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textFieldExpression><![CDATA[$F{customer}.getNom()]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="staticText-2" x="6" y="54" width="120" height="18" uuid="c6974521-97dc-465c-87d3-d45be2b18f22"/>
<box topPadding="2" leftPadding="4" rightPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right"/>
<text><![CDATA[Date document]]></text>
</staticText>
<staticText>
<reportElement key="staticText-3" x="6" y="72" width="120" height="18" uuid="dd9a6787-86cf-4619-a7f4-39b4c3f57bf9"/>
<box topPadding="2" leftPadding="4" rightPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right"/>
<text><![CDATA[Date échéance]]></text>
</staticText>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement key="textField-4" x="126" y="90" width="148" height="18" uuid="9533a2e6-1c91-49eb-8007-ab77faa3b9dc"/>
<box topPadding="2" leftPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textFieldExpression><![CDATA[$F{numero}]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="staticText-4" x="6" y="108" width="120" height="18" uuid="bf604c85-83e4-4653-a495-154960474a87"/>
<box topPadding="2" leftPadding="4" rightPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right"/>
<text><![CDATA[Réf. customer]]></text>
</staticText>
<staticText>
<reportElement key="staticText-5" x="6" y="90" width="120" height="18" uuid="a39ef932-26ae-4788-b312-b0407f8bafbe"/>
<box topPadding="2" leftPadding="4" rightPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="1.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right"/>
<text><![CDATA[N° document]]></text>
</staticText>
<textField isBlankWhenNull="false">
<reportElement key="textField-5" x="315" y="0" width="179" height="36" uuid="e9ee7f81-5b04-4da9-9f7b-3026f19528a9"/>
<box leftPadding="4"/>
<textElement verticalAlignment="Bottom"/>
<textFieldExpression><![CDATA[$F{customer}.getNom()]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
<reportElement key="textField-6" x="315" y="36" width="179" height="14" uuid="760c796b-2c2c-4266-83e0-c342a92c2b4e"/>
<box leftPadding="4"/>
<textFieldExpression><![CDATA[$F{customer}.getAdresse()]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
<reportElement key="textField-7" x="315" y="50" width="179" height="14" uuid="f87a0c2b-1b5f-4640-8cd3-ed90ef4b78d5"/>
<box leftPadding="4"/>
<textFieldExpression><![CDATA[$F{customer}.getCodePostal() + " " + $F{customer}.getLocalite()]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
<reportElement key="textField-8" x="315" y="76" width="179" height="14" uuid="60cf1420-102f-4a8d-b247-109a3f34b67f"/>
<box leftPadding="4"/>
<textFieldExpression><![CDATA["TVA : " + $F{customer}.getNumeroTVA()]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
<reportElement key="textField-9" x="6" y="24" width="268" height="30" uuid="b500a578-e63e-449e-b4be-7324550ea3b4"/>
<box leftPadding="4">
<pen lineWidth="1.0"/>
<topPen lineWidth="0.0" lineStyle="Double"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0" lineStyle="Double"/>
<rightPen lineWidth="0.0" lineStyle="Double"/>
</box>
<textElement>
<font size="18"/>
</textElement>
<textFieldExpression><![CDATA[$F{creditNote} ? "Note de crédit" : "Facture"]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
<reportElement key="textField-7" x="315" y="64" width="179" height="14" uuid="3d76053d-71af-4b87-92c0-eb7c1011dda2">
<printWhenExpression><![CDATA[!$F{customer}.getCountry().equals($F{customer}.getTrustee().getCountry())]]></printWhenExpression>
</reportElement>
<box leftPadding="4"/>
<textFieldExpression><![CDATA[$F{customer}.getCountry().getNameFr()]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="textField" x="0" y="167" width="505" height="17" isRemoveLineWhenBlank="true" uuid="831804e4-c455-4c27-b689-cccb152bffc8">
<printWhenExpression><![CDATA[$F{intraVat}]]></printWhenExpression>
</reportElement>
<textElement markup="none">
<font size="10"/>
</textElement>
<text><![CDATA[AUTOLIQUIDATION]]></text>
</staticText>
</band>
</groupHeader>
<groupFooter>
<band height="119" splitType="Stretch">
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement key="textField" stretchType="RelativeToTallestObject" x="0" y="48" width="505" height="18" uuid="41123314-1928-4c4e-9e59-23fb0e09b423"/>
<textFieldExpression><![CDATA[$F{remarque}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement key="textField-3" positionType="FixRelativeToBottom" x="0" y="66" width="505" height="35" uuid="11439e87-82bc-4003-a7a2-b2a4ad02072e">
<printWhenExpression><![CDATA[!$F{creditNote}]]></printWhenExpression>
</reportElement>
<textElement markup="html">
<font isBold="true" isItalic="false" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[($F{compte} != null ? "Veuillez payer sur le compte <i> IBAN " + $F{compte}.getIban() + ($F{compte}.getBic() != null ? " - " + $F{compte}.getBic() : "" ) + "</i> avec la référence " : "Référence payement : ") + "<i>" + $F{communication} + "</i> pour le " + new SimpleDateFormat("dd/MM/yyyy").format($F{echeance}) + "."]]></textFieldExpression>
</textField>
<elementGroup>
<textField pattern="##0.00 €" isBlankWhenNull="false">
<reportElement key="textField" positionType="FixRelativeToBottom" x="425" y="20" width="80" height="20" uuid="2285d046-8901-4393-9e19-ab05af954579"/>
<box topPadding="2" rightPadding="4">
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="0.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right">
<font isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$F{tvac}]]></textFieldExpression>
</textField>
<textField pattern="##0.00 €" isBlankWhenNull="false">
<reportElement key="textField" positionType="FixRelativeToBottom" x="265" y="20" width="80" height="20" uuid="fdac7982-8977-4a44-bc1d-e3d8451917ce"/>
<box topPadding="2" rightPadding="4">
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="0.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right">
<font isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$F{htva}]]></textFieldExpression>
</textField>
<textField pattern="##0.00 €" isBlankWhenNull="false">
<reportElement key="textField-1" positionType="FixRelativeToBottom" x="345" y="20" width="80" height="20" uuid="3768a45d-b758-4bc7-958d-5b7723ab840c"/>
<box topPadding="2" rightPadding="4">
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="0.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right">
<font isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$F{tvac}.subtract($F{htva})]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="staticText-9" positionType="FixRelativeToBottom" x="265" y="0" width="80" height="20" uuid="ded844bf-73aa-4013-a3d9-2136e587cb07"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="0.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[Total HTVA]]></text>
</staticText>
<staticText>
<reportElement key="staticText-10" positionType="FixRelativeToBottom" x="345" y="0" width="80" height="20" uuid="45b20ae0-bbb7-43d9-9d17-9c1c5965af65"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<topPen lineWidth="0.0" lineStyle="Solid"/>
<leftPen lineWidth="1.0" lineStyle="Solid"/>
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[TVA]]></text>
</staticText>
<textField>
<reportElement key="staticText-11" positionType="FixRelativeToBottom" x="425" y="0" width="80" height="20" uuid="567f7831-4fdc-4c93-8f16-b8ca447cf1a7"/>
<box>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement textAlignment="Center" markup="none">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$F{creditNote} ? "À recevoir" : "À payer"]]></textFieldExpression>
</textField>
</elementGroup>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement key="textField" x="6" y="2" width="148" height="18" forecolor="#FFFFFF" uuid="db4de445-082b-4150-9f63-e544cb857df7"/>
<box leftPadding="4">
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<bottomPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textFieldExpression><![CDATA[$F{echeance}]]></textFieldExpression>
</textField>
<staticText>
<reportElement key="textField" stretchType="RelativeToTallestObject" x="0" y="101" width="505" height="18" isRemoveLineWhenBlank="true" forecolor="#FF3333" uuid="50a622ed-c935-4a3c-a80d-38aaadfc2ad6">
<printWhenExpression><![CDATA[$F{directDebit}]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" markup="none">
<font isBold="true"/>
</textElement>
<text><![CDATA[Cette facture sera encaissée par domiciliation.]]></text>
</staticText>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band height="68" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="20" splitType="Stretch">
<printWhenExpression><![CDATA[!$F{tasks}.isEmpty()]]></printWhenExpression>
<subreport isUsingCache="true">
<reportElement key="subreport-1" stretchType="RelativeToBandHeight" x="0" y="0" width="505" height="20" isPrintWhenDetailOverflows="true" uuid="27c37e34-0af8-4de7-b46b-508651dcc209"/>
<dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($F{tasks})]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{taskReport}]]></subreportExpression>
</subreport>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>

When adding more rows in table in jaspersoft subreport in print the first page success and other is empty, why?

I have a main report this main report contains two subreports ,
The first subreport contains two tables, when there is a lot of data on the first table it prints the first page successfully but the other pages are empty.
The expected output is to continue show the rows of the first table until it go to the second table, if there is no a lot of data it works correctly
This the design code :
<band height="429">
<staticText>
<reportElement x="13" y="5" width="100" height="60" uuid="b236e2f4-495e-4a22-87fa-4e316ea5f41f"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Account Number :]]></text>
</staticText>
<staticText>
<reportElement x="13" y="27" width="89" height="18" uuid="7fdc8df6-4c51-4d87-b8f7-cb0acec8acef"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Description :]]></text>
</staticText>
<staticText>
<reportElement x="13" y="47" width="80" height="21" uuid="294925d2-bf2a-4c51-9f8a-339873e0f747"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Period from :]]></text>
</staticText>
<textField>
<reportElement x="113" y="7" width="100" height="17" uuid="0406491b-1bdb-41db-8ece-4058578dc28a"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{CUSTOMERACCOUNTNUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="100" y="24" width="350" height="23" uuid="f3a441fe-3d57-490d-9d24-cd0d060694f3"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Summary invoice for "+ $F{COMPANYNAME}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="204" y="47" width="100" height="20" uuid="e71997f3-50fb-4736-8fdc-cd74d95204db"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{PERIODTO}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="174" y="47" width="30" height="20" uuid="bec9327c-65d8-4070-9b55-ddeaa6527e2f"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<text><![CDATA[ To:]]></text>
</staticText>
<textField>
<reportElement x="94" y="47" width="80" height="20" uuid="9e431304-75d4-43e6-9e7b-663a1dabf504"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{PERIODFROM}]]></textFieldExpression>
</textField>
<frame>
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="20" y="-10" width="760" height="287" isPrintWhenDetailOverflows="true" uuid="81f11b41-36e2-4795-9965-02ae41b1b338"/>
<box>
<topPen lineWidth="2.0" lineStyle="Solid" lineColor="#20E827"/>
<leftPen lineWidth="2.0" lineStyle="Solid" lineColor="#20E827"/>
<bottomPen lineWidth="2.0" lineStyle="Solid" lineColor="#20E827"/>
<rightPen lineWidth="2.0" lineStyle="Solid" lineColor="#20E827"/>
</box>
<componentElement>
<reportElement positionType="Float" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" mode="Opaque" x="21" y="111" width="724" height="60" isPrintWhenDetailOverflows="true" uuid="6b9558ad-488a-4954-98f0-b4a4c19a3dbe">
<property name="net.sf.jasperreports.export.headertoolbar.table.name" value=""/>
<property name="local_mesure_unitwidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</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="InvoiceDetailDS" uuid="d4a58f73-73e9-432a-bc4c-bc82959e3959">
<datasetParameter name="headerId">
<datasetParameterExpression><![CDATA[$F{HEADERID}]]></datasetParameterExpression>
</datasetParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>
<jr:column width="95" uuid="52966a24-1f98-4445-b6f6-f83ada4ec1f8">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="95" height="30" backcolor="#A6FFB5" uuid="868f2a68-0cba-47ce-9c30-f955deb28e85"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Service ID]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="95" height="30" isPrintWhenDetailOverflows="true" uuid="4dce2c60-c99f-4752-9697-492e8e2d9930"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{ORDERSERVICEID}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="92" uuid="bb1703e2-5b7e-4bef-9772-e40ee123a9bd">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="92" height="30" backcolor="#A6FFB5" uuid="56038351-cd7e-4c6d-9158-4d071e26faf8"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Order Number]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField>
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="92" height="30" uuid="f1d27619-7b71-407d-a449-f3bfa1906c93"/>
<box>
<topPen lineWidth="0.3"/>
<leftPen lineWidth="0.3"/>
<bottomPen lineWidth="0.3"/>
<rightPen lineWidth="0.3"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{ROSNUMBER}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="95" uuid="2703ba82-935b-496b-a4af-223f33a4a23c">
<jr:tableHeader height="1" rowSpan="1"/>
<jr:tableFooter height="1" rowSpan="1"/>
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="95" height="30" backcolor="#A6FFB5" uuid="f1fe79d1-2cea-42b1-88cb-1bc4e70ef6e1"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Action Type]]></text>
</staticText>
</jr:columnHeader>
<jr:columnFooter height="0" rowSpan="1"/>
<jr:detailCell height="30" rowSpan="1">
<textField isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="95" height="30" isPrintWhenDetailOverflows="true" uuid="d512d971-c04f-4ecf-8a11-22b3fcbdffc0"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{ACTIONTYPE}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="80" uuid="479436d0-de8d-4cd6-9b8d-cc8f42eef53d">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="80" height="30" backcolor="#A6FFB5" uuid="9d46cd49-e847-4967-b69b-daa03cb3ed2f"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Invoice From]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="80" height="30" uuid="9b755792-0ce6-4144-985a-cf2f50e97c4b"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{INVOICEFROM}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="71" uuid="3b39699e-eeda-408c-a2af-d45125fe57ed">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="71" height="30" backcolor="#A6FFB5" uuid="5426229a-2a89-4335-aa9f-b42b51707041"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Invoice To]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="71" height="30" uuid="38071396-7786-4aec-ae98-64780811e474"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{INVOICETO}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="101" uuid="6c5336a5-d796-469d-b843-f1062bf7f7ca">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="101" height="30" backcolor="#A6FFB5" uuid="49d8ab5c-272e-428d-b4c2-466c13d9a2b7"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Non-Recurring Charges]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField pattern="#,##0.###;(#,##0.###)" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="101" height="30" uuid="a93bc30f-13bc-4eaf-9cec-92849cc69756"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{NRC}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="99" uuid="f2b13180-33c5-405d-883f-402c53c8cf20">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="99" height="30" backcolor="#A6FFB5" uuid="4cc22936-e12f-4bca-bb22-453d021d61c1"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Recurring Charges]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField pattern="#,##0.###;(#,##0.###)" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="99" height="30" uuid="b5639d81-207e-432c-b3e0-793bf7dd533e"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{MRC}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="90" uuid="d2a8e5ef-097b-4e8c-b0bd-84f8f2a272bd">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="90" height="30" backcolor="#A6FFB5" uuid="b2f75a95-5ac4-415b-b64b-05bcf3c77bef"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Amount SAR]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField pattern="#,##0.###;(#,##0.###)" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="90" height="30" uuid="0b9a5ef9-9e8a-406f-ab70-95d32ff00a40"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{TOTALAMOUNT}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</frame>
</band>
</title>
<summary>
<band height="326">
<frame>
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="130" y="120" width="760" height="206" isPrintWhenDetailOverflows="true" forecolor="#000000" uuid="1c3a92e7-b648-4580-acae-afb17ad5d59e"/>
<box>
<topPen lineWidth="2.0" lineColor="#20E827"/>
<leftPen lineWidth="2.0" lineColor="#20E827"/>
<bottomPen lineWidth="2.0" lineColor="#20E827"/>
<rightPen lineWidth="2.0" lineColor="#20E827"/>
</box>
<componentElement>
<reportElement positionType="Float" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" mode="Opaque" x="-89" y="-19" width="407" height="60" isPrintWhenDetailOverflows="true" uuid="1866fba3-4869-4d93-af0f-36422d16eccf">
<property name="net.sf.jasperreports.export.headertoolbar.table.name" value=""/>
<property name="local_mesure_unitwidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</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="InvoiceDetailDS" uuid="4f1d98f2-fe87-477a-90b3-7524f0cab260">
<datasetParameter name="headerId">
<datasetParameterExpression><![CDATA[$F{HEADERID}]]></datasetParameterExpression>
</datasetParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>
<jr:column width="93" uuid="7c67a26e-a635-4ddb-8406-4a2f9b225c87">
<jr:tableHeader height="1" rowSpan="1"/>
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="93" height="30" backcolor="#A6FFB5" uuid="635a9e6c-697a-4637-b674-69aa8c753ed8"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Old SRF Number]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="93" height="30" isPrintWhenDetailOverflows="true" uuid="ef0042fa-17e5-4f0a-b1d1-d091bf1723db"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{OLDSRFNUMBER}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="191" uuid="1410c880-6b1d-44c3-95a3-9bddc86bb688">
<jr:tableHeader height="1" rowSpan="1"/>
<jr:tableFooter height="1" rowSpan="1"/>
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="191" height="30" backcolor="#A6FFB5" uuid="5001b005-2471-484a-9656-1886d2462ca1"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Old Service Description]]></text>
</staticText>
</jr:columnHeader>
<jr:columnFooter height="0" rowSpan="1"/>
<jr:detailCell height="30" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="191" height="30" isPrintWhenDetailOverflows="true" uuid="e51f0035-cad9-4cc8-baef-06d208073ef5"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{OLDSERVICE}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="07118eff-f7e7-4577-a4da-8c58e40ae256">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="30" backcolor="#A6FFB5" uuid="6d4ed900-1965-402a-adaf-731c484c93ee"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[New SRF Number]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="100" height="30" uuid="14c2da73-ebca-44a5-b6b5-ddaa50f4c360"/>
<box>
<topPen lineWidth="0.3"/>
<leftPen lineWidth="0.3"/>
<bottomPen lineWidth="0.3"/>
<rightPen lineWidth="0.3"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{SRFNUMBER}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="332" uuid="587c3be8-0a7a-447e-b522-63b507e03f3e">
<jr:columnHeader height="30" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="332" height="30" backcolor="#A6FFB5" uuid="d571175e-3038-47b7-b9b8-a17e3ba7c271"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[New Service Description]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell height="30" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="332" height="30" isPrintWhenDetailOverflows="true" uuid="a3e861ee-40be-4c0c-bcc6-3fce102aa07c"/>
<box>
<topPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.3" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<paragraph leftIndent="5"/>
</textElement>
<textFieldExpression><![CDATA[$F{DESCRIPTION}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</frame>
</band>
This is how the two subreports are included in the main report:
<subreport>
<reportElement positionType="Float" x="12" y="647" width="796" height="30" isRemoveLineWhenBlank="true" uuid="01ec6c49-7d39-4bea-836e-69715b24090c">
<property name="local_mesure_unitwidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<subreportParameter name="INVOICE_NO">
<subreportParameterExpression><![CDATA[$P{INVOICE_NO}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA["InvoiceServiceDetails.jasper"]]></subreportExpression>
</subreport>
<subreport>
<reportElement positionType="Float" x="11" y="677" width="797" height="28" isRemoveLineWhenBlank="true" uuid="aef8cb38-ed55-4893-aca0-96d852a2f5e7"/>
<subreportParameter name="INVOICE_NO">
<subreportParameterExpression><![CDATA[$P{INVOICE_NO}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA["InvoiceServiceSummaryDetails.jasper"]]></subreportExpression>
</subreport>
How can I solve this ?
Edit
After trying to change some pages properties , the fill report give me out of memory exception, after searching i used virtualizer but not solved.
SourceFileName = SourceFileName.replaceAll("//", "/");
JRVirtualizer virtualizer = new JRSwapFileVirtualizer(1000, new JRSwapFile(reportsDirString.replaceAll("//", "/"), 2048, 1024), true);
JRVirtualizationHelper.setThreadVirtualizer(virtualizer);
// .replaceAll("\\\\", "\\\\")
parameters.put(JRParameter.REPORT_VIRTUALIZER, virtualizer);
As mentioned by #philipobrien above placing a sub-report in the Detail band is usually incorrect unless you intentionally want a new report per row returned by your data source.
I would recommend using the GroupFooter section which allows for multiple bands. These bands are filled in the order in which they are appear in the JRXML.
The following sample shows how you can use the GroupFooter section with two bands. As far as I can remember the GroupFooter bands will auto expand their height so there is no need to specifically set the height unless of course you want a minimum height.
Please note that I have removed the GroupHeader section from the below sample. In this scenario there was no need for this section. Also note the dummy expression used to ensure the group displays.
<group name="DUMMY_GROUP">
<groupExpression><![CDATA[0 == 0]]></groupExpression>
<groupFooter>
<band>
<subreport>
<reportElement positionType="Float" x="12" y="647" width="796" height="30" isRemoveLineWhenBlank="true" uuid="01ec6c49-7d39-4bea-836e-69715b24090c">
<property name="local_mesure_unitwidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<subreportParameter name="INVOICE_NO">
<subreportParameterExpression><![CDATA[$P{INVOICE_NO}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA["InvoiceServiceDetails.jasper"]]></subreportExpression>
</subreport>
</band>
<band>
<subreport>
<reportElement positionType="Float" x="11" y="677" width="797" height="28" isRemoveLineWhenBlank="true" uuid="aef8cb38-ed55-4893-aca0-96d852a2f5e7"/>
<subreportParameter name="INVOICE_NO">
<subreportParameterExpression><![CDATA[$P{INVOICE_NO}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA["InvoiceServiceSummaryDetails.jasper"]]></subreportExpression>
</subreport>
</band>
</groupFooter>
</group>
Sub-reports should rarely be placed in the Detail band, although there are occasionally valid reasons to do so.
The reason for this is that the sub-reports will be reproduced once for each row of data returned by your main query e.g. if you have 1 row returned you will get 1 copy of each subreport, if you have 100 rows returned you will get 100 of each sub-report. If your sub-reports also have 100 rows each you are returning 10k rows for every sub-report and are very likely to hit an out of memory exception error.
Try moving your sub-reports to either a Header/Footer band or to the Summary band and then run the report.

Jasper Report text new line when Chinese+number String overflow lose

I use traditional Chinese ,and set the Stretch with overflow.
I find the Jasper report lose some characters like above picture when it would create a new line.
my jrxml text :
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="352" y="0" width="140" height="30" isPrintWhenDetailOverflows="true" uuid="9855b06a-dfca-4a88-8830-efb1590c2d4e"/>
<box topPadding="1" leftPadding="4" bottomPadding="5" rightPadding="4">
<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>
<textElement verticalAlignment="Middle">
<font fontName="標楷體" pdfFontName="MHei-Medium" pdfEncoding="UniCNS-UCS2-H" isPdfEmbedded="true"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1"/>
</textElement>
<textFieldExpression><![CDATA[$F{varyReason}]]></textFieldExpression>
</textField>
Do I lose some setting???

How to prevent joining values in Row Group (column) of Crosstab?

Is there a way to unmerge cells with the same value in crosstab?
The problem is that same valued cells are getting merged.
I want the value to be repeated and have cell borders. For example, in a row group, if i have 2 columns, col1 with values 'abc' and col2 with values 1,2,3 and if there are 3 rows, the col1 is one big cell with 'abc' printed only once.
This is what I don't want and instead want it to be printed 3 times.
This is presentation I required:
Currently I have:
<?xml version="1.0" encoding="UTF-8"?>
<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_1" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="a53b72b8-0dda-468b-bffd-3e28d792a2d6">
<style name="Crosstab_CH" 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="Crosstab_CG" 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="Crosstab_CT" mode="Opaque" backcolor="#005FB3">
<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="Crosstab_CD" 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>
<queryString>
<![CDATA[select * from test]]>
</queryString>
<field name="col1" class="java.lang.String"/>
<field name="col2" class="java.lang.Integer"/>
<field name="col3" class="java.lang.String"/>
<field name="col4" class="java.lang.Integer"/>
<field name="col5" class="java.lang.Integer"/>
<summary>
<band height="214" splitType="Stretch">
<crosstab>
<reportElement x="0" y="0" width="555" height="214" uuid="a8663f8c-217c-4ef3-ab2c-a11120aea80e"/>
<rowGroup name="col11" width="60">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{col1}]]></bucketExpression>
</bucket>
<crosstabRowHeader>
<cellContents mode="Opaque" style="Crosstab_CH">
<textField>
<reportElement x="0" y="0" width="60" height="20" uuid="6e0cb2ba-ea94-4b5e-a774-3092f6b0bd06"/>
<textFieldExpression><![CDATA[$V{col11}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabRowHeader>
<crosstabTotalRowHeader>
<cellContents>
<staticText>
<reportElement x="0" y="0" width="-2147483648" height="-2147483648" uuid="4787314d-3cb1-4f29-99d4-1443453e5d1b"/>
<text><![CDATA[Total col11]]></text>
</staticText>
</cellContents>
</crosstabTotalRowHeader>
</rowGroup>
<rowGroup name="col21" width="60">
<bucket class="java.lang.Integer">
<bucketExpression><![CDATA[$F{col2}]]></bucketExpression>
</bucket>
<crosstabRowHeader>
<cellContents mode="Opaque" style="Crosstab_CH">
<textField>
<reportElement x="0" y="0" width="60" height="20" uuid="bf3d5e77-12a9-44cc-94d1-3f2a317f32d1"/>
<textFieldExpression><![CDATA[$V{col21}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabRowHeader>
<crosstabTotalRowHeader>
<cellContents>
<staticText>
<reportElement x="0" y="0" width="-2147483648" height="-2147483648" uuid="c21bf242-edbb-4533-9d7d-7120282703a5"/>
<text><![CDATA[Total col21]]></text>
</staticText>
</cellContents>
</crosstabTotalRowHeader>
</rowGroup>
<columnGroup name="col31" height="20">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{col3}]]></bucketExpression>
</bucket>
<crosstabColumnHeader>
<cellContents mode="Opaque" style="Crosstab_CH">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<textField>
<reportElement x="0" y="0" width="120" height="20" uuid="320dded3-882b-4e8d-a821-ce94996a72d2">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<textFieldExpression><![CDATA[$V{col31}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabColumnHeader>
<crosstabTotalColumnHeader>
<cellContents>
<staticText>
<reportElement x="0" y="0" width="-2147483648" height="-2147483648" uuid="e78a53ad-4437-41d1-8cea-ab1a2fdf09d3"/>
<text><![CDATA[Total col31]]></text>
</staticText>
</cellContents>
</crosstabTotalColumnHeader>
</columnGroup>
<measure name="col4_MEASURE1" class="java.lang.Integer" calculation="Count">
<measureExpression><![CDATA[$F{col4}]]></measureExpression>
</measure>
<measure name="col5_MEASURE1" class="java.lang.Integer" calculation="Count">
<measureExpression><![CDATA[$F{col5}]]></measureExpression>
</measure>
<crosstabCell width="120" height="20">
<cellContents mode="Opaque" style="Crosstab_CD">
<textField>
<reportElement x="0" y="0" width="60" height="20" uuid="ddc2801e-7492-4848-b7f7-422d7267cadb"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textFieldExpression><![CDATA[$V{col4_MEASURE1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="60" y="0" width="60" height="20" uuid="38136ac4-94aa-46ef-91ca-b32ac1d19aba">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textFieldExpression><![CDATA[$V{col5_MEASURE1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="60" height="20" columnTotalGroup="col31">
<cellContents mode="Opaque" style="Crosstab_CT">
<textField>
<reportElement x="0" y="0" width="60" height="10" forecolor="#FFFFFF" uuid="0b620468-123a-434e-8a87-be8125b86470"/>
<textFieldExpression><![CDATA[$V{col4_MEASURE1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="10" width="60" height="10" forecolor="#FFFFFF" uuid="d3c3da1b-7c66-48e5-8328-9c775e036229"/>
<textFieldExpression><![CDATA[$V{col5_MEASURE1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="60" height="20" rowTotalGroup="col11">
<cellContents mode="Opaque" style="Crosstab_CT">
<textField>
<reportElement x="0" y="0" width="60" height="10" forecolor="#FFFFFF" uuid="08db97ef-0f91-4301-a552-2eec171c2b91"/>
<textFieldExpression><![CDATA[$V{col4_MEASURE1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="10" width="60" height="10" forecolor="#FFFFFF" uuid="2fa36822-c633-4954-b6ad-bb2633dd827b"/>
<textFieldExpression><![CDATA[$V{col5_MEASURE1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="60" height="20" rowTotalGroup="col11" columnTotalGroup="col31">
<cellContents mode="Opaque" style="Crosstab_CT">
<textField>
<reportElement x="0" y="0" width="60" height="10" forecolor="#FFFFFF" uuid="a1545b3f-ac13-4e97-8720-3b526af18207"/>
<textFieldExpression><![CDATA[$V{col4_MEASURE1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="10" width="60" height="10" forecolor="#FFFFFF" uuid="02c1d1d7-8b20-461e-8bd9-b2e4ceff02ed"/>
<textFieldExpression><![CDATA[$V{col5_MEASURE1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="60" height="20" rowTotalGroup="col21">
<cellContents mode="Opaque" style="Crosstab_CG">
<textField>
<reportElement x="0" y="0" width="60" height="10" uuid="94b61c57-3b18-4134-a48f-36394cf8ac28"/>
<textFieldExpression><![CDATA[$V{col4_MEASURE1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="10" width="60" height="10" uuid="b8b84ab6-a800-427e-8738-40dc17f8b7ae"/>
<textFieldExpression><![CDATA[$V{col5_MEASURE1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="60" height="20" rowTotalGroup="col21" columnTotalGroup="col31">
<cellContents mode="Opaque" style="Crosstab_CT">
<textField>
<reportElement x="0" y="0" width="60" height="10" forecolor="#FFFFFF" uuid="e34172fb-29af-43aa-af6b-50bb63949236"/>
<textFieldExpression><![CDATA[$V{col4_MEASURE1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="10" width="60" height="10" forecolor="#FFFFFF" uuid="232ba479-f365-4fb8-8402-4a9d50f79c6c"/>
<textFieldExpression><![CDATA[$V{col5_MEASURE1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
</crosstab>
</band>
</summary>
</jasperReport>
The col1 and col2 in your sample are Rows Groups. This name (Row Group) tell us that JasperReports engine unions all non unique values in groups in case using Crosstab component. That is why values should be always ordered for grouping data right (as shown at image below).
The data in Row Groups will be grouped by JR engine and one group is drawing as one cell.
Does this mean that the problem has no solution? - No. Let's solve it!
Looks like you want "to join" col1 and col2 columns values. This means that the value of col1 Row Group can be added to the "column" of col2 Row Group.
Example
Datasource
It is enough to test sample with simple csv datasource.
col1,col2,col3,col4,col5
abcd,1,b,1c,434
abcd,2,c,2c,333
abcd,3,c,4c,333
abcd,3,c,4c,333
abcd,5,c,4c,333
abcd,3,e,3g,909
The name of data adapter for this datasource in the example below is values.csv. The first line from the file is skipped - it is contains the column's name.
Report template
We should set the width of first column (col1 Row Group) as zero and increase the width of second column (col2 Row Group) to place additionally value of col1. In this case the JR engine draws both both values for each unique col2 value. We still need the first column because we need value of col1 (the bucket for col1 Row Group).
The design in Jaspersoft Studio (JSS) looks like:
The jrxml file:
<?xml version="1.0" encoding="UTF-8"?>
<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="Crosstab. Merged values" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="values.csv"/>
<style name="Crosstab_CH" 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="Crosstab_CD" 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>
<field name="col1" class="java.lang.String"/>
<field name="col2" class="java.lang.Integer"/>
<field name="col3" class="java.lang.String"/>
<field name="col4" class="java.lang.Integer"/>
<field name="col5" class="java.lang.Integer"/>
<summary>
<band height="214" splitType="Stretch">
<crosstab>
<reportElement x="0" y="0" width="555" height="214"/>
<crosstabHeaderCell>
<cellContents style="Crosstab_CH">
<staticText>
<reportElement x="0" y="0" width="60" height="20"/>
<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>
<text><![CDATA[Col1]]></text>
</staticText>
<staticText>
<reportElement x="60" y="0" width="60" height="20"/>
<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>
<text><![CDATA[Col2]]></text>
</staticText>
</cellContents>
</crosstabHeaderCell>
<rowGroup name="col11" width="0">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{col1}]]></bucketExpression>
</bucket>
<crosstabRowHeader>
<cellContents mode="Opaque" style="Crosstab_CH"/>
</crosstabRowHeader>
<crosstabTotalRowHeader>
<cellContents/>
</crosstabTotalRowHeader>
</rowGroup>
<rowGroup name="col21" width="120">
<bucket class="java.lang.Integer">
<bucketExpression><![CDATA[$F{col2}]]></bucketExpression>
</bucket>
<crosstabRowHeader>
<cellContents mode="Opaque" style="Crosstab_CD">
<textField>
<reportElement x="0" y="0" width="60" height="20"/>
<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>
<textFieldExpression><![CDATA[$V{col11}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="60" y="0" width="60" height="20"/>
<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>
<textFieldExpression><![CDATA[$V{col21}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabRowHeader>
<crosstabTotalRowHeader>
<cellContents/>
</crosstabTotalRowHeader>
</rowGroup>
<columnGroup name="col31" height="20">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{col3}]]></bucketExpression>
</bucket>
<crosstabColumnHeader>
<cellContents mode="Opaque" style="Crosstab_CH">
<textField>
<reportElement x="0" y="0" width="120" height="20"/>
<textFieldExpression><![CDATA[$V{col31}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabColumnHeader>
<crosstabTotalColumnHeader>
<cellContents/>
</crosstabTotalColumnHeader>
</columnGroup>
<measure name="col4_MEASURE1" class="java.lang.Integer" calculation="Count">
<measureExpression><![CDATA[$F{col4}]]></measureExpression>
</measure>
<measure name="col5_MEASURE1" class="java.lang.Integer" calculation="Count">
<measureExpression><![CDATA[$F{col5}]]></measureExpression>
</measure>
<crosstabCell width="120" height="20">
<cellContents mode="Opaque" style="Crosstab_CD">
<textField>
<reportElement x="0" y="0" width="60" height="20"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textFieldExpression><![CDATA[$V{col4_MEASURE1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="60" y="0" width="60" height="20"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textFieldExpression><![CDATA[$V{col5_MEASURE1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
</crosstab>
</band>
</summary>
</jasperReport>
Output result
The result in JSS:

Why is element not printed on some pages?

I have created a basic element which contains a static text and text field in a band. I have set 8 pieces of them after each other like rows of a table in a band and put them on one detail. The problem is that on the first page all elements are get filled and printed correctly. On the second page the 2 last elements wont printed. On the last page the last element wont be printed! I have no idea why it faces such a problem.
<?xml version="1.0" encoding="UTF-8"?>
<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="direktRechrDV" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d12b4217-cf22-4ec4-857b-9cb1b2b406a8">
<property name="net.sf.jasperreports.print.create.bookmarks" value="true"/>
<group name="id" isStartNewPage="true" isReprintHeaderOnEachPage="true" keepTogether="true">
<groupExpression><![CDATA[$F{KN_Id}]]></groupExpression>
<groupHeader>
<band/>
</groupHeader>
<groupFooter>
<band splitType="Immediate">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</band>
</groupFooter>
</group>
<group name="LBgroup" isStartNewPage="true" isReprintHeaderOnEachPage="true" keepTogether="true">
<groupExpression><![CDATA[$F{LB_ID}]]></groupExpression>
<groupHeader>
<band/>
</groupHeader>
<groupFooter>
<band splitType="Immediate"/>
</groupFooter>
</group>
<pageHeader>
<band height="62" splitType="Stretch">
<staticText>
<reportElement x="8" y="2" width="409" height="26" uuid="37a242c0-b352-42e1-b287-42350a5e2090"/>
<textElement markup="html"/>
<text><![CDATA[Statistische Basisprüfung - Auffälligkeitskriterien: Verstetigung und Vollzähligkeit 2015<br>]]></text>
</staticText>
<textField isStretchWithOverflow="true">
<reportElement x="7" y="16" width="322" height="19" uuid="f28c3fc0-6d00-4437-a185-febccf94e91f"/>
<textElement markup="none"/>
<textFieldExpression><![CDATA[$F{idLb} +" - "+ $F{LB_LangBezeichnung}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="8" y="32" width="321" height="20" uuid="705007c1-4bfa-483a-a113-887cf7fd6488"/>
<textFieldExpression><![CDATA[$F{KN_Id}+": "+$F{KN_BezeichnungAlleinstehendKurz}]]></textFieldExpression>
</textField>
<image hAlign="Center">
<reportElement x="480" y="6" width="50" height="50" uuid="3f5fe998-e94e-4280-af71-7f7163878156">
<printWhenExpression><![CDATA[$F{IMG_ID} == 1]]></printWhenExpression>
</reportElement>
<imageExpression><![CDATA[$F{Image}]]></imageExpression>
</image>
</band>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="345">
<printWhenExpression><![CDATA[new Boolean($V{id_COUNT}.intValue()==1)]]></printWhenExpression>
<frame>
<reportElement positionType="Float" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="8" y="40" width="501" height="270" uuid="55ca2869-dd02-48a5-a9bf-90b538ea22a6"/>
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="0" width="280" height="21" printWhenGroupChanges="id" uuid="255952d3-ed97-4615-926f-e7e89560d64a"/>
<textField isStretchWithOverflow="true">
<reportElement key="" positionType="Float" isPrintRepeatedValues="false" x="99" y="0" width="181" height="21" printWhenGroupChanges="id" uuid="83851dcf-a0b2-44df-9117-0c5487b16260">
<property name="net.sf.jasperreports.export.json.path" value="AK.id"/>
<property name="net.sf.jasperreports.export.json.repeat.value" value="true"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement>
<paragraph leftIndent="1"/>
</textElement>
<textFieldExpression><![CDATA[$F{KN_Id}]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="99" height="21" printWhenGroupChanges="id" forecolor="#FFFFFF" backcolor="#005051" uuid="168d731e-09c0-4b1e-ac6f-c86168fe1286">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<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="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<text><![CDATA[AK_ID]]></text>
</staticText>
</frame>
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="21" width="280" height="21" printWhenGroupChanges="id" uuid="0879346c-a263-431d-8e2d-8d2a1cd0e67c"/>
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="99" height="21" printWhenGroupChanges="id" forecolor="#FFFFFF" backcolor="#005051" uuid="75c8f9aa-47d6-4869-b8b2-a16ca58e11db"/>
<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="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<text><![CDATA[Präfix]]></text>
</staticText>
<textField isStretchWithOverflow="true">
<reportElement key="" positionType="Float" isPrintRepeatedValues="false" x="99" y="0" width="181" height="21" printWhenGroupChanges="id" uuid="f38998f8-8dc7-4ccc-8066-0cfe5e7ab876">
<property name="net.sf.jasperreports.export.json.path" value="qi.praefix"/>
<property name="net.sf.jasperreports.export.json.repeat.value" value="true"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement>
<paragraph leftIndent="1"/>
</textElement>
<textFieldExpression><![CDATA[$F{QI_Praefix}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="42" width="280" height="30" printWhenGroupChanges="id" uuid="92186cbd-4a98-4c6e-9b51-0dfe52d5ff21"/>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="99" y="0" width="181" height="30" printWhenGroupChanges="id" uuid="4818fc44-cde3-40ed-8d77-a6dd71b89f79">
<property name="net.sf.jasperreports.export.json.path" value="begruendung.relevanz"/>
<property name="net.sf.jasperreports.export.json.repeat.value" value="true"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement markup="html">
<paragraph leftIndent="1"/>
</textElement>
<textFieldExpression><![CDATA["<b>Relevanz</b><br>" +($F{KN_Zusatzinfo_DV_Relevanz} !=null ? $F{KN_Zusatzinfo_DV_Relevanz} : "-")+"<br><b>Hypothese</b><br>" + ($F{KN_Zusatzinfo_DV_Hypothese} !=null ? $F{KN_Zusatzinfo_DV_Hypothese}: "-")]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="99" height="30" printWhenGroupChanges="id" forecolor="#FFFFFF" backcolor="#005051" uuid="a93eb1cf-015c-442a-afac-68c7f9a30cb5">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<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>
<textElement>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Begründung für die Auswahl]]></text>
</staticText>
</frame>
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="72" width="280" height="27" printWhenGroupChanges="id" uuid="91d6b54a-bcd4-4737-8208-7dcd9e388ea4">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="99" y="0" width="181" height="27" printWhenGroupChanges="id" uuid="883db6cf-5cc6-4e32-a4cd-54bdf86b97df">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement rotation="None">
<paragraph leftIndent="1"/>
</textElement>
<textFieldExpression><![CDATA[($F{KN_Zusatzinfo_DV_Indikatorbezug} !=null ? $F{KN_Zusatzinfo_DV_Indikatorbezug} : "-")]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="-1" width="99" height="27" printWhenGroupChanges="id" forecolor="#FFFFFF" backcolor="#005051" uuid="61373b56-22c7-4097-8da1-ebcd702bc410">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<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="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<text><![CDATA[Bezug zu anderen Indikatoren]]></text>
</staticText>
</frame>
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="99" width="280" height="27" printWhenGroupChanges="id" uuid="be213a60-4cd9-4f4a-972b-edfbf7b408c9"/>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="99" y="0" width="181" height="27" printWhenGroupChanges="id" uuid="261644b6-bbdb-4528-9f25-7fb23e98bf99">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement>
<paragraph leftIndent="1"/>
</textElement>
<textFieldExpression><![CDATA[$F{bewertungsArtTypNameKurz}]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="99" height="27" printWhenGroupChanges="id" forecolor="#FFFFFF" backcolor="#005051" uuid="d338843f-2f88-4d1b-b355-e7757acacf8e">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<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="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<text><![CDATA[Bewertungsart]]></text>
</staticText>
</frame>
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="127" width="280" height="27" printWhenGroupChanges="id" uuid="626fe004-8942-4655-8c64-4022728e65e9"/>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="99" y="0" width="181" height="27" printWhenGroupChanges="id" uuid="3ea786ed-6ce2-4ce7-84af-b4b7d29cc3b7">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement>
<paragraph leftIndent="1"/>
</textElement>
<textFieldExpression><![CDATA[$F{mindesanzahlZaeler}]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="-1" width="99" height="27" printWhenGroupChanges="id" forecolor="#FFFFFF" backcolor="#005051" uuid="284779f8-692b-45b1-a535-62f1a4ce124b">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<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="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<text><![CDATA[Mindestanzahl Zähler]]></text>
</staticText>
</frame>
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="154" width="280" height="27" uuid="f2f30758-914b-4990-b508-644cabb06f3f"/>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="99" y="0" width="181" height="27" printWhenGroupChanges="id" uuid="77c50b2a-a9ec-4225-8361-4daa6dc9d97e">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement>
<paragraph leftIndent="1"/>
</textElement>
<textFieldExpression><![CDATA[$F{KN_Vergleichbarkeit_Vorjahr}]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="99" height="27" printWhenGroupChanges="id" forecolor="#FFFFFF" backcolor="#005051" uuid="4f5650a6-9330-444b-bfec-0c1cd03d254f">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<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="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<text><![CDATA[Vergleichbarkeit mit Vorjahr]]></text>
</staticText>
</frame>
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="182" width="280" height="27" uuid="3a70786a-ab1b-4193-8087-bcf9f363116a"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="99" y="-1" width="181" height="27" printWhenGroupChanges="id" uuid="0d48b38a-07e8-42e7-89e8-e0580651028e">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement>
<paragraph leftIndent="1"/>
</textElement>
<textFieldExpression><![CDATA[$F{mindesanzahlNenner}]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="0" y="-1" width="99" height="27" printWhenGroupChanges="id" forecolor="#FFFFFF" backcolor="#005051" uuid="fc8232c6-dfb5-482a-9fef-a9ac1f75861a">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<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="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<text><![CDATA[Mindestanzahl Nenner]]></text>
</staticText>
</frame>
</frame>
<textField isStretchWithOverflow="true" hyperlinkType="" hyperlinkTarget="" bookmarkLevel="1">
<reportElement isPrintRepeatedValues="false" mode="Transparent" x="0" y="4" width="340" height="6" printWhenGroupChanges="id" uuid="56a6e5f3-fd57-436e-8acb-8dbc1acbb220">
<printWhenExpression><![CDATA[1==0]]></printWhenExpression>
</reportElement>
<textElement markup="html"/>
<textFieldExpression><![CDATA[$F{KN_Id}+":"+$F{nameAlleinstehend}]]></textFieldExpression>
<anchorNameExpression><![CDATA[$F{KN_Id}+":"+$F{nameAlleinstehend}]]></anchorNameExpression>
<hyperlinkReferenceExpression><![CDATA[]]></hyperlinkReferenceExpression>
</textField>
<staticText>
<reportElement x="11" y="14" width="78" height="16" uuid="17d269d4-d7fa-44ef-8b00-d1abe0ecb92c"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Berechnung]]></text>
</staticText>
</band>
</detail>
<columnFooter>
<band splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</band>
</columnFooter>
<pageFooter>
<band height="54" splitType="Stretch">
<staticText>
<reportElement x="0" y="20" width="410" height="20" uuid="0744ba3c-69d3-4220-b201-72dabdeb5038"/>
<textElement>
<font size="8"/>
</textElement>
<text><![CDATA[ins]]></text>
</staticText>
<textField evaluationTime="Master">
<reportElement x="481" y="18" width="69" height="24" uuid="5789c6a7-2ca2-4ba9-bd13-1b56ddcb7091"/>
<textFieldExpression><![CDATA["Seite "+$V{MASTER_CURRENT_PAGE}+" von"+$V{MASTER_TOTAL_PAGES}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band height="52" splitType="Stretch"/>
</summary>
</jasperReport>
You probably have same data in previous record and this attribute on reportElement
isPrintRepeatedValues="false"
tells jasper to not print if field value is the same as on previous record.
Set
isPrintRepeatedValues="true"
isPrintRepeatedValues, sets whether or not repeating values (same
values, equals) should be printed or not, its mostly used (set to
false) in table layout where you do not like to see same value again
in the following rows, you like only to display it when it changes.