I am using TIBCO jasper studio for generating an Excel report. I am not able to change the back color of a cell based on a condition. I have given the same condition in PDF, its working fine but for Excel colur is not displaying. Can anyone help me?
Given below is the condition given:
<style name="highlight1">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet1").equals(new java.lang.Integer(1))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight2">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet2").equals(new java.lang.Integer(2))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
Here I am getting a values from a HashMap (associateDetectors) (Key is string and value is integer)
Following is my entire jrxml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.2.2.final using JasperReports Library version 6.2.2 -->
<!-- 2018-12-13T11:59:19 -->
<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="DetectorStatusReport" pageWidth="992" pageHeight="595" orientation="Landscape" columnWidth="952" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ced95029-b569-4027-895c-af2843a4e088">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<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="net.sf.jasperreports.export.xls.create.custom.palette" value="true"/>
<property name="net.sf.jasperreports.export.xls.detect.cell.type" value="true"/>
<property name="net.sf.jasperreports.export.xls.ignore.cell.background" value="false"/>
<style name="Title" fontSize="50" isBold="true"/>
<style name="SubTitle" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="30" isBold="true"/>
<style name="Detail" fontName="Arial" fontSize="12"/>
<style name="highlight1">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet1").equals(new java.lang.Integer(1))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight2">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet2").equals(new java.lang.Integer(2))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight3">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet3").equals(new java.lang.Integer(3))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight4">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet4").equals(new java.lang.Integer(4))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight5">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet5").equals(new java.lang.Integer(5))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight6">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet6").equals(new java.lang.Integer(6))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight7">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet7").equals(new java.lang.Integer(7))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight8">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet8").equals(new java.lang.Integer(8))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight9">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet9").equals(new java.lang.Integer(9))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<style name="highlight10">
<conditionalStyle>
<conditionExpression><![CDATA[$F{associateDetectors}.get("assoDet10").equals(new java.lang.Integer(10))]]></conditionExpression>
<style mode="Opaque" backcolor="#FFFF00"/>
</conditionalStyle>
</style>
<parameter name="junctionName" class="java.lang.String">
<parameterDescription><![CDATA[]]></parameterDescription>
</parameter>
<parameter name="frm_date" class="java.lang.String"/>
<parameter name="to_date" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="rtc" class="java.sql.Timestamp">
<fieldDescription><![CDATA[rtc]]></fieldDescription>
</field>
<field name="health" class="java.lang.String">
<fieldDescription><![CDATA[health]]></fieldDescription>
</field>
<field name="planNo" class="java.lang.Integer">
<fieldDescription><![CDATA[planNo]]></fieldDescription>
</field>
<field name="phaseTime" class="java.lang.Integer">
<fieldDescription><![CDATA[phaseTime]]></fieldDescription>
</field>
<field name="phaseNo" class="java.lang.Integer">
<fieldDescription><![CDATA[phaseNo]]></fieldDescription>
</field>
<field name="phaseColour" class="java.lang.String">
<fieldDescription><![CDATA[phaseColour]]></fieldDescription>
</field>
<field name="cycleTime" class="java.lang.Integer">
<fieldDescription><![CDATA[cycleTime]]></fieldDescription>
</field>
<field name="totalVehicleCount" class="java.lang.String">
<fieldDescription><![CDATA[totalVehicleCount]]></fieldDescription>
</field>
<field name="detectorStatusVal" class="java.util.HashMap">
<fieldDescription><![CDATA[detectorStatusVal]]></fieldDescription>
</field>
<field name="associateDetectors" class="java.util.HashMap">
<fieldDescription><![CDATA[associateDetectors]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="97" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<frame>
<reportElement mode="Opaque" x="-10" y="-30" width="862" height="50" forecolor="#9C6444" uuid="b87c1b65-3be3-42ce-885f-21b7d1f29a17">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#0F0B0B"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#0F0B0B"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#0F0B0B"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#0F0B0B"/>
</box>
<staticText>
<reportElement style="Title" positionType="Float" mode="Opaque" x="130" y="11" width="231" height="30" forecolor="#0F0B0B" backcolor="#FFFFFF" uuid="bbd2692e-1dc1-49c7-b2a1-632af2ef9f16">
<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>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="16" isItalic="false" isUnderline="false"/>
</textElement>
<text><![CDATA[Detector Status Report of ]]></text>
</staticText>
<textField>
<reportElement style="Title" x="365" y="11" width="263" height="30" forecolor="#0A0100" uuid="dcb43670-d7cf-4f90-86a7-c309c36f294a">
<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>
<textElement verticalAlignment="Middle">
<font fontName="Times New Roman" size="16"/>
</textElement>
<textFieldExpression><![CDATA[$P{junctionName}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="641" y="1" width="36" height="21" forecolor="#1A0606" uuid="ba7b5931-84f5-450e-aac8-9df1a0284ea0"/>
<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>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Times New Roman"/>
</textElement>
<text><![CDATA[From: ]]></text>
</staticText>
<staticText>
<reportElement x="641" y="26" width="37" height="21" forecolor="#1C0606" uuid="255a4119-bc96-4b89-ad3f-5bdec46a0d12"/>
<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>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Times New Roman"/>
</textElement>
<text><![CDATA[To: ]]></text>
</staticText>
<textField>
<reportElement x="681" y="1" width="176" height="20" forecolor="#0F0404" uuid="fd0e002e-6e43-429e-aca3-a55ed00b3ec3"/>
<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>
<textElement verticalAlignment="Middle">
<font fontName="Times New Roman"/>
</textElement>
<textFieldExpression><![CDATA[$P{frm_date}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="682" y="25" width="176" height="22" forecolor="#140403" uuid="03165034-543c-4a51-bc54-004105ecc771"/>
<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>
<textElement verticalAlignment="Middle">
<font fontName="Times New Roman"/>
</textElement>
<textFieldExpression><![CDATA[$P{to_date}]]></textFieldExpression>
</textField>
<image>
<reportElement x="10" y="1" width="100" height="40" uuid="6f12bfe4-d88f-4d55-838d-d8831093e18e"/>
<imageExpression><![CDATA["jasper-image/cms_logo_report.png"]]></imageExpression>
</image>
</frame>
<staticText>
<reportElement style="SubTitle" mode="Opaque" x="230" y="47" width="612" height="23" forecolor="#736343" uuid="1d03c566-7b02-4426-8a43-d8982c8f0c09">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement>
<font size="9"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[ Vehicle Counts in associated detectors D1 to D24]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="-10" y="47" width="60" height="47" forecolor="#736343" uuid="1efdf153-1c41-4210-b107-3f0e99414553"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[RTC]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="50" y="47" width="60" height="47" forecolor="#736343" uuid="9208779c-c577-4c54-813d-a18ed0c2adca"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[Health status]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="35" splitType="Stretch">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<frame>
<reportElement x="0" y="10" width="960" height="17" uuid="8c3a60a6-57fa-48a1-9109-985db3a2e591"/>
<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>
<staticText>
<reportElement style="Column header" x="140" y="-60" width="30" height="47" forecolor="#736343" uuid="d0d08877-0cf0-4d59-a4d0-ea9f1d0a453a"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[Ph]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="170" y="-60" width="30" height="47" forecolor="#736343" uuid="baafc3c5-6c6a-4d4a-89e0-b88b092bf587"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[Ph Time]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="230" y="-36" width="20" height="23" forecolor="#736343" backcolor="#FFFFFF" uuid="fdcef03f-006c-4d0d-9832-9ac5ae2435ed"/>
<box>
< some deleted in edit as oversize >
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[D1]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="250" y="-36" width="20" height="23" forecolor="#736343" uuid="b7f27902-1822-4b8c-97ff-1950ffd20e2b"/>
<box>
< some deleted in edit as oversize >
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[D2]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="290" y="-36" width="20" height="23" forecolor="#736343" uuid="8dc2acaa-41ae-4bf3-812b-8faca40d1a5e"/>
<box>
< some deleted in edit as oversize >
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[D4]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="270" y="-36" width="20" height="23" forecolor="#736343" uuid="77ee6179-60e7-4650-9457-ad5e42dc8fb1"/>
<box>
< some deleted in edit as oversize >
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[D3]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="310" y="-36" width="20" height="23" forecolor="#736343" uuid="e1d52452-653d-4c1f-a57a-917b584e430b"/>
<box>
< some deleted in edit as oversize >
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[D5]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="330" y="-36" width="20" height="23" forecolor="#736343" uuid="b30c88bf-476d-42f0-84fb-01a8cb9e4361"/>
<box>
< some deleted in edit as oversize >
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[D6]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="350" y="-36" width="20" height="23" forecolor="#736343" uuid="53ac3ac3-0d06-43bb-a926-6bbd03a2eeaf"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[D7]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="390" y="-36" width="20" height="23" forecolor="#736343" uuid="70ed7e49-44d6-4993-ad19-cd538fbfa8d3"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[D9]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="370" y="-36" width="20" height="23" forecolor="#736343" uuid="7485dd94-1a68-4b36-8d7b-9f53d3134b2c"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[D8]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="410" y="-36" width="30" height="23" forecolor="#736343" uuid="1688d564-e5ad-4932-b47e-53945aebdc47"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[D10]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="200" y="-60" width="30" height="47" forecolor="#736343" uuid="45aefc4a-25fc-4a9b-a485-1f21a8561b60"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[Total Count]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="110" y="-60" width="30" height="47" forecolor="#736343" uuid="7000449c-8ee3-4f51-809d-e1d152be4907"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#666666"/>
</box>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[Pl]]></text>
</staticText>
</frame>
</band>
</columnHeader>
<detail>
<band height="30" splitType="Stretch">
<frame>
<reportElement mode="Opaque" x="0" y="0" width="880" height="30" uuid="a98495d8-3c8d-4fa0-81f5-30c3efc2f766"/>
<textField>
<reportElement x="50" y="0" width="60" height="30" uuid="be06dc78-bda6-4cdc-9c51-df4f7674e9b9">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="0.1" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.1" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.1" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.1" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{health}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="110" y="0" width="30" height="30" uuid="62f70610-dcef-428a-9178-6f63338cc343">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{planNo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="140" y="0" width="30" height="30" uuid="5baf4df3-1679-4957-99ce-3a8670d0e2c5">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{phaseNo}]]></textFieldExpression>
</textField>
<textFieldExpression><![CDATA[$F{phaseTime}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="-10" y="0" width="60" height="30" uuid="fbb602fd-2ed8-4f8f-80e0-5980741a94f1">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{rtc}.toString()]]></textFieldExpression>
</textField>
<textField>
<reportElement style="highlight1" x="230" y="0" width="20" height="30" uuid="c3f6b5dc-6652-4d8f-8fb1-7120817e0efa">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
< some deleted in edit as oversize >
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{detectorStatusVal}.get("D1")]]></textFieldExpression>
</textField>
<textField>
<reportElement style="highlight2" x="250" y="0" width="20" height="30" uuid="4f90c811-1b09-4399-aaca-6dc89564e055">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
< some deleted in edit as oversize >
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{detectorStatusVal}.get("D2")]]></textFieldExpression>
</textField>
<textField>
<reportElement style="highlight3" x="270" y="0" width="20" height="30" uuid="c5a9cdca-e6a8-4e95-be49-4a9670feaad2">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
< some deleted in edit as oversize >
</box>
</frame>
</band>
</detail>
</jasperReport>
Related
I am using jasperreports 6.6.0. In the report i have a jsonqldatasource with list of lists and i need to print the values in a table structure. In detail band there are few "columns" of frames(with borders) that are printed correctly on one page. But when one of columns is stretched to the next page than only that column borders are stretched along with text. What i need is printing borders of all "columns" if one of them is stretched to the next page.
I will attach jrxml and some screenshots(https://imgur.com/a/SNa2Ckw) to better explain the question. I've highlighted missing borders with green colour on second image
<detail>
<band height="70" splitType="Stretch">
<frame>
<reportElement positionType="Float" x="38" y="10" width="505" height="60" uuid="41dea29f-7812-4ee4-a523-05ff19d28142">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<frame>
<reportElement positionType="Float" x="-3" y="30" width="499" height="31" uuid="eda5c6aa-fa84-4531-b8cb-8f3e6824be58">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<box leftPadding="0" bottomPadding="0" rightPadding="0"/>
<frame>
<reportElement x="0" y="0" width="80" height="30" uuid="188be56c-2c0e-40bb-9c79-9d9767c06c95"/>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
<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>
<textField>
<reportElement positionType="Float" x="3" y="0" width="77" height="30" uuid="6f72763f-f3ad-43ca-abac-bbeaf2d8f2e6">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$P{documentTitle}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="80" y="0" width="60" height="30" uuid="90b690e7-b9c1-47a6-a55e-3d0f90eb9f80"/>
<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>
<textField>
<reportElement positionType="Float" x="4" y="0" width="56" height="30" uuid="eb3e7b8d-ef93-40ba-988a-f4f647441ae0">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$P{dateTitle}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="140" y="0" width="134" height="30" uuid="c9d19eb6-a488-4fbe-b477-cd554f76d93d"/>
<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>
<textField>
<reportElement positionType="Float" x="3" y="0" width="131" height="30" uuid="17aef305-9bdb-4b90-8333-e100c125b0cd">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$P{corespondentTitle}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="274" y="0" width="40" height="30" uuid="2154fc22-c2c0-49e4-b3d0-3f4328577e49"/>
<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>
<textField>
<reportElement positionType="Float" x="0" y="0" width="40" height="30" uuid="8f838cba-7ea2-49d8-a212-a27e7388049a">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$P{oborotDtTitle}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="314" y="0" width="40" height="30" uuid="3b1b29ca-b0f9-49d8-b4ea-585682ffe1dd"/>
<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>
<textField>
<reportElement positionType="Float" x="0" y="0" width="40" height="30" uuid="649f0ba5-35f3-473d-9953-3cb6b5cf40c3">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$P{oborotKtTitle}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="354" y="0" width="145" height="30" uuid="ea45a53d-5f82-46f0-b5b8-040a4b03dba4"/>
<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>
<textField>
<reportElement positionType="Float" x="3" y="0" width="135" height="30" uuid="92ce4c0a-af9b-4f73-bce2-bc3ade6843e3">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$P{purposeTitle}]]></textFieldExpression>
</textField>
</frame>
</frame>
</frame>
</band>
<band height="120">
<property name="com.jaspersoft.studio.layout"/>
<printWhenExpression><![CDATA[$F{accountNumber}!=null]]></printWhenExpression>
<frame>
<reportElement positionType="Float" stretchType="ContainerHeight" mode="Transparent" x="35" y="0" width="499" height="100" isRemoveLineWhenBlank="true" uuid="7209f70f-f728-4e6c-a904-b8af7ec3c470">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<property name="ShowOutOfBoundContent" value="true"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<box>
<pen lineWidth="1.0"/>
<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>
<componentElement>
<reportElement stretchType="ContainerBottom" mode="Transparent" x="0" y="0" width="499" height="100" isRemoveLineWhenBlank="true" uuid="22033e7e-bcfa-4636-9ee9-0d5657a11fd7">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<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>
<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical" ignoreWidth="false">
<datasetRun subDataset="TransactionInfoDataset" uuid="09f940cf-bcc1-4997-af19-470c1e210390">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("content.transactionsInfo")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="100" width="499">
<frame borderSplitType="DrawBorders">
<reportElement stretchType="ElementGroupHeight" x="0" y="60" width="499" height="40" uuid="dbbb9bb0-b7e8-4b7f-933b-bb424934432e"/>
<box>
<topPen lineStyle="Solid" lineColor="#000000"/>
<leftPen lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineStyle="Solid" lineColor="#000000"/>
<rightPen lineStyle="Solid" lineColor="#000000"/>
</box>
<componentElement>
<reportElement stretchType="ElementGroupHeight" x="0" y="0" width="499" height="40" isRemoveLineWhenBlank="true" uuid="1a9c9a78-443f-4fb2-9e50-e4764b3bbd84">
<property name="com.jaspersoft.studio.unit.x" 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.y" value="px"/>
</reportElement>
<jr:list printOrder="Vertical" ignoreWidth="true">
<datasetRun subDataset="TransactionDataset" uuid="3af1a5b8-e298-4fd3-bc5a-856082e2fab8">
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonQLDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("transactions")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="40" width="499">
<frame borderSplitType="DrawBorders">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="0" y="0" width="499" height="40" uuid="8230fd0b-2e3d-4dfc-b1af-338a150c995c">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<box leftPadding="0" bottomPadding="0" rightPadding="0"/>
<frame>
<reportElement stretchType="ElementGroupHeight" x="0" y="0" width="80" height="40" uuid="44a98fd7-e9fb-4ad0-ab91-1061a4946c4c"/>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
<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>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="3" y="0" width="77" height="30" uuid="94aa871f-31eb-4e73-8bd3-b7bb81d00dd9">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{orderName} +" № " + $F{orderNumber} +" \nот " +$F{orderDate}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement stretchType="ElementGroupHeight" x="80" y="0" width="60" height="40" uuid="b2e673ca-a3ee-476c-9f5f-619bad0c38f0"/>
<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>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="2" y="0" width="58" height="30" uuid="72bef5d8-674b-46fb-994b-3057a1988a7e">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{orderDate}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement stretchType="ElementGroupHeight" x="140" y="0" width="134" height="40" uuid="7bcaf153-ec36-47a5-adee-8c041a6ac2f6"/>
<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>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="3" y="0" width="129" height="30" uuid="62e0404d-7d0f-4f3f-b432-d2ee19f10de3">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{payeeOwner} + ", счет № " + $F{payeeAccountNumber} + ", " +$F{payeeBankName}+ ", БИК " + $F{payeeBic}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement stretchType="ElementGroupHeight" x="274" y="0" width="40" height="40" uuid="bf3039f9-52f6-4624-929d-e8937ef0311b"/>
<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>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="0" y="0" width="40" height="30" uuid="dac65ed4-11a8-4ad1-8a61-3c6cc05c8226">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{debitAmount}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement stretchType="ElementGroupHeight" x="314" y="0" width="40" height="40" uuid="1303ec83-077b-4b38-888b-e99de6e3f4b6"/>
<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>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="0" y="0" width="40" height="30" uuid="d2783913-bb9d-4d9a-87bb-08bb46dbc740">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{creditAmount}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement stretchType="ElementGroupHeight" x="354" y="0" width="145" height="40" uuid="0abcb132-9c01-4f50-8e24-c804cf022938"/>
<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>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="4" y="0" width="136" height="30" isPrintWhenDetailOverflows="true" uuid="e2976bec-f09f-44ee-b4f6-2a34414d0a1e">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacing="Single" lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{purpose}]]></textFieldExpression>
</textField>
</frame>
</frame>
</jr:listContents>
</jr:list>
</componentElement>
</frame>
<frame borderSplitType="DrawBorders">
<reportElement x="0" y="0" width="499" height="60" uuid="a90a6869-35f1-4efd-83cf-acdc2f69ecf3"/>
<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>
<frame>
<reportElement x="0" y="0" width="100" height="60" isRemoveLineWhenBlank="true" uuid="1f8ccece-16e7-4059-bb08-82f27a51d038">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<box>
<pen lineColor="#2318F0"/>
<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>
<textField>
<reportElement key="" positionType="Float" x="0" y="0" width="100" height="60" uuid="a18919eb-db17-4cfa-9e26-5588c74405a7">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.spacingAfter" value="pixel"/>
<property name="com.jaspersoft.studio.unit.tabStopWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<box>
<pen lineColor="#38C241"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{date}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="100" y="0" width="100" height="60" isRemoveLineWhenBlank="true" uuid="aa836dd4-0a46-4ddf-aa11-a0fbb2250cc4">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box>
<pen lineColor="#2318F0"/>
<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>
<textField>
<reportElement key="" positionType="Float" x="0" y="0" width="100" height="60" uuid="3300f017-3d51-430e-a687-d70406080c76">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.spacingAfter" value="pixel"/>
<property name="com.jaspersoft.studio.unit.tabStopWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<box>
<pen lineColor="#38C241"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Top">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA["Вх.\nостаток\n\n" + $F{incomingBalance}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="200" y="0" width="100" height="60" isRemoveLineWhenBlank="true" uuid="58db761a-82fb-48d1-bff2-9d23776dbaff">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box>
<pen lineColor="#2318F0"/>
<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>
<textField>
<reportElement key="" positionType="Float" x="0" y="0" width="100" height="60" uuid="dffa0a44-0367-4083-99b3-4f613fd9d59f">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.spacingAfter" value="pixel"/>
<property name="com.jaspersoft.studio.unit.tabStopWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<box>
<pen lineColor="#38C241"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA["Оборот\nДт\n\n" + $F{debit}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="300" y="0" width="100" height="60" isRemoveLineWhenBlank="true" uuid="a0000b92-5dc9-415a-9872-0742b4e1767c">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box>
<pen lineColor="#2318F0"/>
<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>
<textField>
<reportElement key="" positionType="Float" x="0" y="0" width="100" height="60" uuid="87d6d309-dd99-4b4a-98ce-ae830040f25e">
</reportElement>
<box>
<pen lineColor="#38C241"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA["Оборот\nКт\n\n" + $F{credit}]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="400" y="0" width="99" height="60" isRemoveLineWhenBlank="true" uuid="ed2ef71e-09d8-4735-8bf9-fe1776cdf87a">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box>
<pen lineColor="#2318F0"/>
<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>
<textField>
<reportElement key="" positionType="Float" x="0" y="0" width="99" height="60" uuid="54efcd3e-1ea4-48e9-91f5-648055807cab">
</reportElement>
<box>
<pen lineColor="#38C241"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Times New Roman" size="12"/>
<paragraph lineSpacingSize="1.1" firstLineIndent="0"/>
</textElement>
<textFieldExpression><![CDATA["Исх.\nостаток\n\n" + $F{outgoingBalance}]]></textFieldExpression>
</textField>
</frame>
</frame>
</jr:listContents>
</jr:list>
</componentElement>
</frame>
</band>
</detail>
I am using in Jaspersoft studio 6 and currently working with crosstab. I am a newbie in crosstab and have just started using it. I have created a jrxml file with crosstab(with lots of trial and error, I might add) as follows
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.2.0.final using JasperReports Library version 6.2.0 -->
<!-- 2022-06-29T20:43:31 -->
<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="MAH_Attendance_subjasper" pageWidth="1500" pageHeight="650" orientation="Landscape" columnWidth="1460" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="0e151e12-e64e-4195-aba5-d1747d8a798d">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="MAH HR DB"/>
<style name="Crosstab_CH" mode="Opaque"/>
<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>
<style name="CS_Sunday" backcolor="#FFFFFF">
<conditionalStyle>
<conditionExpression><![CDATA[$V{DayOfWeeek}=="SUN"]]></conditionExpression>
<style forecolor="#058FFF" backcolor="#737373"/>
</conditionalStyle>
</style>
<queryString language="SQL">
<![CDATA[SELECT
emp.emp_number AS empNumber,
CONCAT_WS(" ",emp.first_name,emp.middle_name,emp.last_name)AS emp_name,
att.punch_in_time AS PunchInTime,
att.punch_out_time AS PunchOutTime,
TIME_FORMAT(TIMEDIFF(CONCAT(DATE(att.punch_out_date)," ",(att.punch_out_time)),CONCAT(DATE(att.punch_in_date)," ",(att.punch_in_time))),'%H:%i') AS Total,
att.shift_in_time AS Rosterin,
att.shift_out_time AS Rosterout,
TIME_FORMAT(TIMEDIFF(att.punch_out_time,att.shift_out_time),'%H:%i') AS Extra,
IFNULL(DATE(att.punch_in_date),'') AS punch_in_date,
DAYOFMONTH(att.punch_in_date) AS DayOfMonthh,
CASE
WHEN DAYOFWEEK(att.punch_in_date)=1 THEN 'SUN'
WHEN DAYOFWEEK(att.punch_in_date)=2 THEN 'MON'
WHEN DAYOFWEEK(att.punch_in_date)=3 THEN 'TUE'
WHEN DAYOFWEEK(att.punch_in_date)=4 THEN 'WED'
WHEN DAYOFWEEK(att.punch_in_date)=5 THEN 'THU'
WHEN DAYOFWEEK(att.punch_in_date)=6 THEN 'FRI'
WHEN DAYOFWEEK(att.punch_in_date)=7 THEN 'SAT'
END AS DayOfWeeek
FROM
hr_employees emp,
hr_pay_periods hpr,
hr_setup SETUP1,
hr_setup SETUP2,
hr_transfers tr,
hr_emp_attendance att
LEFT JOIN hr_leaves lv ON (att.employee_id=lv.employee_id AND att.punch_in_date BETWEEN lv.start_date AND lv.end_date)
LEFT JOIN hr_leave_types lt ON(lt.id = lv.leave_type_id AND lt.leave_division_code='LOP')
WHERE
emp.id =att.employee_id
AND emp.id =tr.employee_id
AND emp.emp_number=1
AND tr.active_yn='1'
AND DATE_FORMAT(tr.start_date,'%Y-%m-%d')<=DATE_FORMAT(hpr.end_date,'%Y-%m-%d')
AND (DATE_FORMAT(tr.end_date,'%Y-%m-%d')>=DATE_FORMAT(hpr.start_date,'%Y-%m-%d') OR tr.end_date IS NULL)
AND DATE_FORMAT(att.punch_in_date,'%Y-%m-%d') >=DATE_FORMAT(hpr.start_date,'%Y-%m-%d')
AND DATE_FORMAT(att.punch_in_date,'%Y-%m-%d') <=DATE_FORMAT(hpr.end_date,'%Y-%m-%d')
AND DATE_FORMAT(att.punch_in_date,'%Y-%m-%d') >=DATE_FORMAT(tr.start_date,'%Y-%m-%d')
AND (DATE_FORMAT(att.punch_in_date,'%Y-%m-%d')<=DATE_FORMAT(tr.end_date,'%Y-%m-%d') OR tr.end_date IS NULL)
AND SETUP1.setup_key="HR_EMPLOYEE_NUM_PREFIX"
AND SETUP2.setup_key="HR_EMPLOYEE_NUM_SUFFIX"
AND att.punch_in_date BETWEEN '2022-03-01' AND '2022-03-31'
ORDER BY emp.emp_number,punch_in_date]]>
</queryString>
<field name="empNumber" class="java.lang.String"/>
<field name="emp_name" class="java.lang.String"/>
<field name="PunchInTime" class="java.sql.Time"/>
<field name="PunchOutTime" class="java.sql.Time"/>
<field name="Total" class="java.sql.Time"/>
<field name="Rosterin" class="java.sql.Time"/>
<field name="Rosterout" class="java.sql.Time"/>
<field name="Extra" class="java.sql.Time"/>
<field name="punch_in_date" class="java.lang.Object"/>
<field name="DayOfMonthh" class="java.lang.Integer"/>
<field name="DayOfWeeek" class="java.lang.String"/>
<variable name="Variable_1" class="java.lang.String"/>
<variable name="Variable_2" class="java.lang.String"/>
<variable name="Variable_3" class="java.lang.String"/>
<variable name="Variable_4" class="java.lang.String"/>
<variable name="Variable_5" class="java.lang.String"/>
<variable name="Variable_6" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<summary>
<band height="161" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<crosstab ignoreWidth="false">
<reportElement x="0" y="0" width="1420" height="160" uuid="b9ff42cf-4d41-4581-93ba-9a6a0d737d58">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
<property name="com.jaspersoft.studio.crosstab.style.header" value="Crosstab_CH"/>
<property name="com.jaspersoft.studio.crosstab.style.group" value="Crosstab_CG"/>
<property name="com.jaspersoft.studio.crosstab.style.total" value="Crosstab_CT"/>
<property name="com.jaspersoft.studio.crosstab.style.detail" value="Crosstab_CD"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<crosstabHeaderCell>
<cellContents>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField-1" mode="Transparent" x="0" y="0" width="60" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="5cb94b6f-b1c1-4751-8cc9-1023a08817ba"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Date"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField-1" style="CS_Sunday" mode="Transparent" x="0" y="20" width="60" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="acfafcf8-f527-474d-8627-a7132a747c48"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Day"]]></textFieldExpression>
</textField>
</cellContents>
</crosstabHeaderCell>
<rowGroup name="empNumber" width="60" mergeHeaderCells="false">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{empNumber}]]></bucketExpression>
</bucket>
<crosstabRowHeader>
<cellContents mode="Opaque" style="Crosstab_CH">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField-1" mode="Transparent" x="0" y="0" width="60" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="46855b10-d1a0-4975-b4a9-0c4e63fc8004"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["In"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField-1" mode="Transparent" x="0" y="20" width="60" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="61085207-f106-4ae5-a7be-a40dd4f9e33b"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Out"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField-1" mode="Transparent" x="0" y="40" width="60" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="577e468c-f2a4-4e42-99f1-287363338475"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Total"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField-1" mode="Transparent" x="0" y="60" width="60" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="d89eaa0d-ddd9-4352-9fbb-46572e082ed5"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Roster In"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField-1" mode="Transparent" x="0" y="80" width="60" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="1e60e74b-1df1-4a2b-8ba4-e639b7c95a47"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Roster Out"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField-1" mode="Transparent" x="0" y="100" width="60" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="c9cb35b1-69d9-4075-8a74-2b6e3a5d4916">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
<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>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Extra"]]></textFieldExpression>
</textField>
</cellContents>
</crosstabRowHeader>
<crosstabTotalRowHeader>
<cellContents mode="Opaque" style="Crosstab_CT">
<staticText>
<reportElement x="0" y="0" width="0" height="0" forecolor="#FFFFFF" uuid="6b02ffab-4f0f-4c9b-ab2c-46ca85f651a3"/>
<text><![CDATA[Total empNumber]]></text>
</staticText>
</cellContents>
</crosstabTotalRowHeader>
</rowGroup>
<columnGroup name="DayOfMonthh" height="20" totalPosition="End">
<bucket class="java.lang.Integer">
<bucketExpression><![CDATA[$F{DayOfMonthh}]]></bucketExpression>
</bucket>
<crosstabColumnHeader>
<cellContents mode="Opaque" style="Crosstab_CH">
<textField>
<reportElement style="CS_Sunday" x="0" y="0" width="40" height="20" uuid="718bc55d-1ed4-460e-80dd-af8703ba0c90">
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{DayOfMonthh}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabColumnHeader>
<crosstabTotalColumnHeader>
<cellContents mode="Opaque" style="Crosstab_CT">
<staticText>
<reportElement x="0" y="0" width="0" height="0" forecolor="#FFFFFF" uuid="07e7807e-6981-4dab-b854-c5c8bf274b97"/>
<text><![CDATA[Total DayOfMonthh]]></text>
</staticText>
</cellContents>
</crosstabTotalColumnHeader>
</columnGroup>
<columnGroup name="DayOfWeeek" height="20">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{DayOfWeeek}]]></bucketExpression>
</bucket>
<crosstabColumnHeader>
<cellContents mode="Opaque" style="CS_Sunday">
<textField isBlankWhenNull="true">
<reportElement style="CS_Sunday" x="0" y="0" width="40" height="20" uuid="23a405f5-a6c2-4f4a-be59-d9d5a9e16f3f"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{DayOfWeeek}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabColumnHeader>
<crosstabTotalColumnHeader>
<cellContents mode="Opaque" style="Crosstab_CG">
<staticText>
<reportElement x="0" y="0" width="40" height="20" uuid="edcbd158-c0e7-4268-aff9-0e302e553b25"/>
<text><![CDATA[Total DayOfWeeek]]></text>
</staticText>
</cellContents>
</crosstabTotalColumnHeader>
</columnGroup>
<measure name="PunchInTime_MEASURE" class="java.sql.Time" calculation="Count">
<measureExpression><![CDATA[$F{PunchInTime}]]></measureExpression>
</measure>
<measure name="PunchOutTime_MEASURE" class="java.sql.Time" calculation="Count">
<measureExpression><![CDATA[$F{PunchOutTime}]]></measureExpression>
</measure>
<measure name="Total_MEASURE" class="java.sql.Time">
<measureExpression><![CDATA[$F{Total}]]></measureExpression>
</measure>
<measure name="Rosterin_MEASURE" class="java.sql.Time" calculation="Count">
<measureExpression><![CDATA[$F{Rosterin}]]></measureExpression>
</measure>
<measure name="Rosterout_MEASURE" class="java.sql.Time" calculation="Count">
<measureExpression><![CDATA[$F{Rosterout}]]></measureExpression>
</measure>
<measure name="Extra_MEASURE" class="java.sql.Time" calculation="Count">
<measureExpression><![CDATA[$F{Extra}]]></measureExpression>
</measure>
<measure name="Measure1" class="java.sql.Time" calculation="Sum">
<measureExpression><![CDATA[$F{Extra}]]></measureExpression>
</measure>
<crosstabCell width="40" height="120">
<cellContents mode="Opaque" style="Crosstab_CD">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<textField pattern="HH:mm" isBlankWhenNull="true">
<reportElement style="CS_Sunday" x="0" y="0" width="40" height="20" uuid="4b55089e-2a5c-4ce4-beea-3bb57815c61b"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{PunchInTime_MEASURE}]]></textFieldExpression>
</textField>
<textField pattern="HH:mm" isBlankWhenNull="true">
<reportElement style="CS_Sunday" x="0" y="20" width="40" height="20" uuid="bd55a1cc-0094-482b-b3ff-35197f893d52"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{PunchOutTime_MEASURE}]]></textFieldExpression>
</textField>
<textField pattern="HH:mm" isBlankWhenNull="true">
<reportElement style="CS_Sunday" x="0" y="40" width="40" height="20" uuid="6a7f1df0-e5df-42f1-8ca7-df0d2baa4ee5"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{Total_MEASURE}]]></textFieldExpression>
</textField>
<textField pattern="HH:mm" isBlankWhenNull="true">
<reportElement style="CS_Sunday" x="0" y="60" width="40" height="20" uuid="84b3700f-d3e9-4401-be4e-db1b6c6ea42e"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{Rosterin_MEASURE}]]></textFieldExpression>
</textField>
<textField pattern="HH:mm" isBlankWhenNull="true">
<reportElement style="CS_Sunday" x="0" y="80" width="40" height="20" uuid="d118ce37-b5d5-4082-8244-31941463812b"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{Rosterout_MEASURE}]]></textFieldExpression>
</textField>
<textField pattern="HH:mm" isBlankWhenNull="true">
<reportElement style="CS_Sunday" x="0" y="100" width="40" height="20" uuid="f79896f4-39d6-4de6-8c6f-1ec067bd503e"/>
<box>
<pen lineWidth="1.0" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{Extra_MEASURE}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell height="120" columnTotalGroup="DayOfMonthh">
<cellContents>
<textField pattern="HH:mm">
<reportElement x="0" y="0" width="40" height="120" uuid="3b6da2ce-2fe5-40b4-bbfb-2fed9b9d3217"/>
<textFieldExpression><![CDATA[$V{Measure1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="60" height="20" rowTotalGroup="empNumber" columnTotalGroup="DayOfMonthh">
<cellContents/>
</crosstabCell>
<crosstabCell height="120" columnTotalGroup="DayOfWeeek">
<cellContents/>
</crosstabCell>
<crosstabCell width="60" height="20" rowTotalGroup="empNumber" columnTotalGroup="DayOfWeeek">
<cellContents/>
</crosstabCell>
</crosstab>
</band>
</summary>
</jasperReport>
Following is the output
https://ibb.co/x75CB7Y
I have 2 requirements:
I would like to show the sum for two rows - Total and Extra.
For the Sunday columns cells, I would like to have gray color as the background.
For the second item, I know that we can use conditional style. I have tried using it but I could not get it to work. I would appriciate any help.
Edit:
I have managed to add a new measure for the sum. But as the field is of the type java.sql.Time, I am unable to get the sum of all rows. It just gives the last value of the row in the sum measure field. I have updated the jrxml file and the output above. Is there any workaround for getting the sum of time values?
I have texfield and a label i want to change the background color of label based on the value of texfield ,if the value of texfield is not null then the backcolor of label must change .
<style name="Color1">
<conditionalStyle>
<conditionExpression><![CDATA[$F{check1}=="0.00"]]></conditionExpression>
<style mode="Opaque" backcolor="#4F110F"/>
</conditionalStyle>
</style>
<textField isBlankWhenNull="true">
<reportElement x="140" y="50" width="34" height="24" backcolor="#4F110F" uuid="a792c8a7-ad7e-4f28-b8c0-cc0fce54030a"/>
<textFieldExpression><![CDATA[($F{check1} != null) ? $F{check1} : "0.00"]]></textFieldExpression>
</textField>
above is my texfield conditional expression for textfield
and below is the label
<staticText>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="180" y="57" width="40" height="18" forecolor="#120808" backcolor="#FAFAFA" uuid="1f31c82f-cfca-4930-bee9-890c0dacca8d">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<box topPadding="0" leftPadding="0">
<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>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="11" isBold="true"/>
</textElement>
<text><![CDATA[Yes]]></text>
</staticText>
Try applying the "Color1" style to your StaticText element something like this:
<staticText>
<reportElement style="Color1" positionType="Float" ... >
...
</reportElement>
...
</staticText>
First Remove Forecolor,backcolor, mode from your label. and add your style to it.
<staticText>
<reportElement style="Color1" positionType="Float" stretchType="RelativeToBandHeight" x="180" y="57" width="40" height="18" uuid="1f31c82f-cfca-4930-bee9-890c0dacca8d">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<box topPadding="0" leftPadding="0">
<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>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="11" isBold="true"/>
</textElement>
<text><![CDATA[Yes]]></text>
</staticText>
If your condition, $F{check1} == "0.00" is not working. then try .equals property of java. $F{check1}.equals("0.00") or convert it into same datatype
like new BigDecimal($F{check1}) == new BigDecimal("0.00")
I am using jrxml to export to RTF format.
When number of columns are 12 it is working fine otherwise if we increase number of columns view seems distorted.
When I exported with 10 columns it looks perfectly fine.
I am new to this could anyone help me in this case.
jrxml template used:
<?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="PSDefaultPointAndClick" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20">
<property name="ireport.scriptlethandling" value="0"/>
<property name="ireport.encoding" value="UTF-8"/>
<property name="ireport.zoom" value="1.4641000000000006"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<import value="net.sf.jasperreports.engine.*"/>
<import value="java.util.*"/>
<import value="net.sf.jasperreports.engine.data.*"/>
<parameter name="system.REPORT_NAME" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["Default Report"]]></defaultValueExpression>
</parameter>
<parameter name="config.SUPPORTED_FORMATS" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["HTML,PDF,EXCEL,EXCEL_2007,RTF,CSV,POWERPOINT_2007"]]></defaultValueExpression>
</parameter>
<parameter name="config.FOR_INTERNAL_USE" class="java.lang.String" isForPrompting="false"/>
<parameter name="system.REPORT_FOOTER" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["Copyright (c) 2007,"]]></defaultValueExpression>
</parameter>
<parameter name="config.DATASOURCE" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["PointAndClick"]]></defaultValueExpression>
</parameter>
<parameter name="system.RUN_BY_AND_ON_INFO" class="java.lang.String" isForPrompting="false"/>
<parameter name="system.GENERATION_DATE" class="java.lang.String" isForPrompting="false"/>
<parameter name="system.USER_NAME" class="java.lang.String" isForPrompting="false"/>
<parameter name="system.PAGE" class="java.lang.String" isForPrompting="false"/>
<parameter name="system.EXPORT_FORMAT" class="java.lang.String" isForPrompting="false"/>
<field name="work_id" class="java.lang.String"/>
<field name="name" class="java.lang.String"/>
<field name="owner" class="java.lang.String"/>
<field name="owner_id" class="java.lang.String"/>
<field name="status_current" class="java.lang.String"/>
<field name="active_gate" class="java.lang.String"/>
<field name="active_gate_id" class="java.lang.String"/>
<group name="level1">
<groupExpression><![CDATA[]]></groupExpression>
<groupHeader>
<band height="16" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-12" stretchType="RelativeToBandHeight" mode="Opaque" x="54" y="0" width="341" height="16" backcolor="#EBEBEB"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement verticalAlignment="Bottom">
<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Group Level 1 "]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="20" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-22" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="395" height="16" backcolor="#FFFFFF"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement>
<font fontName="Arial" isBold="true" isItalic="false" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Summary Level 1 "]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<group name="level2">
<groupExpression><![CDATA[]]></groupExpression>
<groupHeader>
<band height="16" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-13" stretchType="RelativeToBandHeight" mode="Opaque" x="99" y="0" width="296" height="16" backcolor="#EBEBEB"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement verticalAlignment="Bottom">
<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Group Level 2 "]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="20" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-21" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="395" height="16" backcolor="#FFFFFF"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement>
<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Summary Level 2 "]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<group name="level3">
<groupExpression><![CDATA[]]></groupExpression>
<groupHeader>
<band height="16" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-14" stretchType="RelativeToBandHeight" mode="Opaque" x="158" y="0" width="237" height="16" backcolor="#EBEBEB"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement verticalAlignment="Bottom">
<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Group Level 3 "]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="20" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-20" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="395" height="16"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement>
<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Summary Level 3 "]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="16" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-4" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="395" height="16" backcolor="#E7EFF7"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<leftPen lineWidth="1.0" lineColor="#FFFFFF"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<rightPen lineWidth="1.0" lineColor="#FFFFFF"/>
</box>
<textElement verticalAlignment="Bottom">
<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["ColumnTitle"]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="16" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-11" stretchType="RelativeToBandHeight" mode="Opaque" x="235" y="0" width="160" height="16"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2"/>
<textElement>
<font fontName="Arial" isBold="false" pdfFontName="Helvetica" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Even_Row"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-16" stretchType="RelativeToBandHeight" mode="Opaque" x="395" y="0" width="140" height="16" backcolor="#FCFAF6"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2"/>
<textElement>
<font fontName="Arial" isBold="false" pdfFontName="Helvetica" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Odd_Row"]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="20" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-17" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="395" height="16"/>
<box topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement>
<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Column Summary"]]></textFieldExpression>
</textField>
</band>
</columnFooter>
<pageFooter>
<band height="42" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement key="textField-26" mode="Opaque" x="0" y="6" width="58" height="36" backcolor="#F5F5F5"/>
<box topPadding="3" bottomPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial" pdfFontName="Helvetica" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{system.PAGE} + " " + $V{PAGE_NUMBER} + " /"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" isBlankWhenNull="false">
<reportElement key="textField-27" mode="Opaque" x="58" y="6" width="59" height="36" backcolor="#F5F5F5"/>
<box topPadding="3" bottomPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement verticalAlignment="Middle">
<font fontName="Arial" pdfFontName="Helvetica" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
<reportElement key="textField-28" mode="Opaque" x="117" y="6" width="418" height="36" backcolor="#F5F5F5"/>
<box topPadding="3" bottomPadding="2" rightPadding="9">
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial" pdfFontName="Helvetica" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{system.REPORT_FOOTER}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<lastPageFooter>
<band height="38" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement key="textField-23" mode="Opaque" x="0" y="2" width="58" height="36" backcolor="#F5F5F5"/>
<box topPadding="3" bottomPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial" pdfFontName="Helvetica" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{system.PAGE} + " " + $V{PAGE_NUMBER} + " /"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" isBlankWhenNull="false">
<reportElement key="textField-24" mode="Opaque" x="58" y="2" width="59" height="36" backcolor="#F5F5F5"/>
<box topPadding="3" bottomPadding="2">
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement verticalAlignment="Middle">
<font fontName="Arial" pdfFontName="Helvetica" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
<reportElement key="textField-25" mode="Opaque" x="117" y="2" width="418" height="36" backcolor="#F5F5F5"/>
<box topPadding="3" bottomPadding="2" rightPadding="9">
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial" pdfFontName="Helvetica" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{system.REPORT_FOOTER}]]></textFieldExpression>
</textField>
</band>
</lastPageFooter>
<summary>
<band height="16" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement key="textField-18" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="535" height="16"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>
</box>
<textElement>
<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Root Summary"]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
JRXML file:
https://www.dropbox.com/s/l866uv4z7sccf2c/12columns.jrxml?dl=0
You cannot create an RTF document with a page size larger than 22 inch.
Your report template has a width of 23.11 inches.
The best explanation I could find is here.
while deploying this jasper file in a linux server. I've got the error :
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Verdana' is not available to the JVM.
But I'm not using this Font. I'm using "SansSerif" which is handled by linux.
PS. The Jasper file was first created by iReport 3.0 then I switched to iReport 5.1. But I recompiled it, and it worked perfectly in the localhost..
Any help please ?
<?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="EditerRecapAppro" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="842" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="fad38eb7-04c4-46b7-92d1-e002d57c48ee">
<property name="ireport.scriptlethandling" value="0"/>
<property name="ireport.encoding" value="UTF-8"/>
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<import value="net.sf.jasperreports.engine.*"/>
<import value="java.util.*"/>
<import value="net.sf.jasperreports.engine.data.*"/>
<parameter name="pWhere" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["1=1"]]></defaultValueExpression>
</parameter>
<parameter name="pOrder" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["1"]]></defaultValueExpression>
</parameter>
<parameter name="pCodeMagasin" class="java.lang.String" isForPrompting="false"/>
<parameter name="pCodeDemandeur" class="java.lang.String" isForPrompting="false"/>
<parameter name="pNumeroBS" class="java.lang.String" isForPrompting="false"/>
<parameter name="pDatePC" class="java.lang.String" isForPrompting="false"/>
<queryString>
<![CDATA[SELECT
GLO_AS_APPRO_ENTETE.NUM_AUT_MVT AS NUM_APP,
GLO_AS_APPRO_ENTETE.DATE_PEC AS DAT_APP,
GLO_AS_APPRO_ENTETE.COD_SER AS CODE_SERVICE,
(SELECT LIB_SERVICE_FR FROM GLO_AS_SERVICE WHERE GLO_AS_SERVICE.COD_SER = GLO_AS_APPRO_ENTETE.COD_SER AND GLO_AS_SERVICE.COD_ETAB = GLO_AS_APPRO_ENTETE.COD_ETAB) AS LIB_SERVICE,
GLO_AS_APPRO_LIGNE.NUM_LIGNE AS NUM_LIG,
GLO_AS_APPRO_LIGNE.COD_ARTC AS CODE_ARTICLE,
(SELECT DES_ARTC_FR FROM GLO_AS_ARTICLE WHERE GLO_AS_ARTICLE.COD_ARTC = GLO_AS_APPRO_LIGNE.COD_ARTC) AS LIB_ARTICLE,
GLO_AS_APPRO_LIGNE.COD_UNT AS UNIT,
GLO_AS_APPRO_LIGNE.QTE_APP,
(SELECT COD_MAG || ' - ' || LIB_MAG_FR FROM GLO_AS_MAGASINS WHERE GLO_AS_MAGASINS.COD_MAG = GLO_AS_APPRO_ENTETE.COD_MAG AND GLO_AS_MAGASINS.COD_ETAB = GLO_AS_APPRO_ENTETE.COD_ETAB) AS MAGASIN
FROM
GLO_AS_APPRO_ENTETE join GLO_AS_APPRO_LIGNE ON
GLO_AS_APPRO_ENTETE.NUM_AUT_MVT = GLO_AS_APPRO_LIGNE.NUM_AUT_MVT AND
GLO_AS_APPRO_ENTETE.COD_ETAB = GLO_AS_APPRO_LIGNE.COD_ETAB AND
GLO_AS_APPRO_ENTETE.EXERCICE = GLO_AS_APPRO_LIGNE.EXERCICE
WHERE $P!{pWhere} AND GLO_AS_APPRO_ENTETE.VALID='O' AND GLO_AS_APPRO_ENTETE.STAT_APP = 'E'
ORDER BY $P!{pOrder}, GLO_AS_APPRO_LIGNE.NUM_LIGNE]]>
</queryString>
<field name="NUM_APP" class="java.math.BigDecimal"/>
<field name="DAT_APP" class="java.sql.Timestamp"/>
<field name="CODE_SERVICE" class="java.lang.String"/>
<field name="LIB_SERVICE" class="java.lang.String"/>
<field name="NUM_LIG" class="java.math.BigDecimal"/>
<field name="CODE_ARTICLE" class="java.lang.String"/>
<field name="LIB_ARTICLE" class="java.lang.String"/>
<field name="UNIT" class="java.lang.String"/>
<field name="QTE_APP" class="java.math.BigDecimal"/>
<field name="MAGASIN" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band height="53" splitType="Stretch">
<staticText>
<reportElement uuid="e8affdf7-8f50-4194-ae2f-655ea31a165b" key="staticText-18" x="320" y="3" width="70" height="12" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($P{pCodeMagasin} != null)]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="7"/>
</textElement>
<text><![CDATA[Code magasin :]]></text>
</staticText>
<textField isBlankWhenNull="false">
<reportElement uuid="6a783e2e-c5b8-4231-bfff-c79d4c241421" key="textField-18" x="390" y="3" width="130" height="12" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($P{pCodeMagasin} != null)]]></printWhenExpression>
</reportElement>
<textElement>
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$P{pCodeMagasin}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="e25887f6-51c0-435e-b949-a4b9340742f5" key="staticText-19" x="320" y="15" width="70" height="12" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($P{pCodeDemandeur} != null)]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="7"/>
</textElement>
<text><![CDATA[Code demandeur :]]></text>
</staticText>
<staticText>
<reportElement uuid="9425cadc-19ca-4f53-8f30-0000d1614f23" key="staticText-20" x="320" y="27" width="70" height="12" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($P{pNumeroBS} != null)]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="7"/>
</textElement>
<text><![CDATA[Numéro bon de sortie :]]></text>
</staticText>
<textField isBlankWhenNull="false">
<reportElement uuid="38de488c-a435-4a09-ba0c-35a238e8bbdd" key="textField-19" x="390" y="15" width="130" height="12" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($P{pCodeDemandeur} != null)]]></printWhenExpression>
</reportElement>
<textElement>
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$P{pCodeDemandeur}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
<reportElement uuid="841888af-5a52-444f-b1f8-c5a66d66d1a0" key="textField-20" x="390" y="27" width="130" height="12" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($P{pNumeroBS} != null)]]></printWhenExpression>
</reportElement>
<textElement>
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$P{pNumeroBS}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="7199ea7e-c7c6-470a-b2d6-bab27507e03c" key="staticText-21" x="270" y="39" width="120" height="12" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($P{pDatePC} != null)]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="7"/>
</textElement>
<text><![CDATA[Date de prise en charge :]]></text>
</staticText>
<textField isBlankWhenNull="false">
<reportElement uuid="a73a3da3-4438-4a29-806b-b08a343425cf" key="textField-21" x="390" y="39" width="130" height="12" isRemoveLineWhenBlank="true">
<printWhenExpression><![CDATA[new Boolean($P{pDatePC} != null)]]></printWhenExpression>
</reportElement>
<textElement>
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$P{pDatePC}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="60" splitType="Stretch">
<staticText>
<reportElement uuid="00f4ca75-4054-4189-b47b-0b5f8eb44b47" key="staticText-1" mode="Opaque" x="126" y="30" width="295" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Service demandeur]]></text>
</staticText>
<staticText>
<reportElement uuid="6f8f52a5-00d6-4b28-ac8d-8b89ad67a30b" key="staticText-2" mode="Opaque" x="1" y="45" width="45" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[N°]]></text>
</staticText>
<staticText>
<reportElement uuid="c4937b21-c87b-4dd8-a3bd-daa607cfadb8" key="staticText-3" mode="Opaque" x="46" y="45" width="50" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="8"/>
</textElement>
<text><![CDATA[Date]]></text>
</staticText>
<staticText>
<reportElement uuid="e4997b00-e680-4dea-b9a0-31caf76812f7" key="staticText-6" mode="Opaque" x="421" y="30" width="50" height="30" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Type]]></text>
</staticText>
<staticText>
<reportElement uuid="6d7d880b-3fe8-4a11-8626-dbd396075e04" key="staticText-7" mode="Opaque" x="171" y="45" width="250" height="15" backcolor="#CCCCCC"/>
<box leftPadding="3">
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Designation]]></text>
</staticText>
<staticText>
<reportElement uuid="d60cbb17-00a2-4c53-8893-5787adc72132" key="staticText-8" mode="Opaque" x="126" y="45" width="45" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Code]]></text>
</staticText>
<staticText>
<reportElement uuid="97b495be-69a1-4b86-8be0-0d52ae3af3f4" key="staticText-10" mode="Opaque" x="1" y="30" width="125" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Demande]]></text>
</staticText>
<staticText>
<reportElement uuid="e42335e4-aaa9-4dfa-bc2c-d41a2b33373d" key="staticText-11" mode="Opaque" x="96" y="45" width="30" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[N°]]></text>
</staticText>
<staticText>
<reportElement uuid="3a929df7-3200-4d55-bcb5-336ef11f93f9" key="staticText-12" mode="Opaque" x="471" y="30" width="310" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Article]]></text>
</staticText>
<staticText>
<reportElement uuid="03743f97-7dfc-42d9-ad5f-a8c5775f2364" key="staticText-13" mode="Opaque" x="471" y="45" width="50" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Code]]></text>
</staticText>
<staticText>
<reportElement uuid="07426d9a-1d21-41f1-b2c6-f8d61256500d" key="staticText-14" mode="Opaque" x="521" y="45" width="230" height="15" backcolor="#CCCCCC"/>
<box leftPadding="3">
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Designation]]></text>
</staticText>
<staticText>
<reportElement uuid="5d0ccba5-a561-4e96-b152-7a7a780fd006" key="staticText-15" mode="Opaque" x="781" y="30" width="40" height="30" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="9"/>
</textElement>
<text><![CDATA[Quantité]]></text>
</staticText>
<staticText>
<reportElement uuid="80412bed-dc27-4c1b-ab1d-3fa3f24b0595" key="staticText-16" mode="Opaque" x="751" y="45" width="30" height="15" backcolor="#CCCCCC"/>
<box>
<pen lineWidth="0.0" lineStyle="Solid"/>
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Un.]]></text>
</staticText>
<staticText>
<reportElement uuid="a793d6a7-e73e-4442-84fa-49e9f3685a32" key="staticText-17" mode="Opaque" x="1" y="10" width="70" height="15" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<text><![CDATA[Magasin :]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement uuid="4c307279-d5ee-46d7-9528-7ef8facf3fcf" key="textField-17" x="71" y="10" width="250" height="15"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{MAGASIN}]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="15" splitType="Stretch">
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="9dd3dae1-3ec0-47cb-bf83-86c3d102c184" key="textField-3" x="1" y="0" width="45" height="15"/>
<box rightPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{NUM_APP}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement uuid="99e93e13-78c9-4eeb-a5ae-91139d51a000" key="textField-4" x="46" y="0" width="50" height="15"/>
<box leftPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{DAT_APP}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="044fae08-595e-416c-a3a0-028f0c61b2c5" key="textField-8" x="421" y="0" width="50" height="15"/>
<box leftPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="a3ffca82-df87-42ff-bb67-d2fc17843c53" key="textField-10" x="171" y="0" width="250" height="15"/>
<box leftPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{LIB_SERVICE}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="94744acd-192d-400a-aa23-a6d33bcbc21d" key="textField-11" x="126" y="0" width="45" height="15"/>
<box leftPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{CODE_SERVICE}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="6b81b174-2cc0-4708-9737-ed16b1d5fe93" key="textField-12" x="96" y="0" width="30" height="15"/>
<box rightPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{NUM_LIG}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="71bb1b34-5b82-4029-a85d-38e23162caa0" key="textField-13" x="471" y="0" width="50" height="15"/>
<box leftPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="SansSerif" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{CODE_ARTICLE}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="0b1611b3-09b1-468e-8c45-4eab692c886e" key="textField-14" x="521" y="0" width="230" height="15"/>
<box leftPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{LIB_ARTICLE}]]></textFieldExpression>
</textField>
<textField pattern="#,##0" isBlankWhenNull="true">
<reportElement uuid="d776b9ac-6182-49e1-a0fc-7c0172c4063f" key="textField-15" x="781" y="0" width="40" height="15"/>
<box rightPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{QTE_APP}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="2d9e05f4-cb39-4b3b-b1dd-22be9acab6f9" key="textField-16" x="751" y="0" width="30" height="15"/>
<box leftPadding="3">
<topPen lineWidth="0.5" lineStyle="Solid"/>
<leftPen lineWidth="0.5" lineStyle="Solid"/>
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
<rightPen lineWidth="0.5" lineStyle="Solid"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{UNIT}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>