Jump to content

markelliscope

Members
  • Posts

    3
  • Joined

  • Last visited

markelliscope's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hello, i am having a problem with some blank rows in an iReport file. I have two Group Expressions. "ContainerDescription" & "Container Stencil" Initially having the Group Footer for "ContainerDescription" with a band height of 14 was working perfectly! But then when i produce a report where the "ContainerDescription" is the same i don't have the gap. The differentiator at that point becomes the "ContainerStencil". So that group was added. Unfortunately due to how the report writes i get this in numerous positions in the report. I added the text Stencil Group Footer to show where it was being placed. I'm fairly new to iReport and only use it as the database requires XPath2 which Studio doesn't support. Any help greatly received. For some background on the report. "ContainerDescription" comes before "Container Stencil" in the XML data file. XML for the report is:- <?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="Skan Delivery Note V1" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isSummaryWithPageHeaderAndFooter="true" isFloatColumnFooter="true" uuid="ce181a35-56a6-4451-96dc-e3d96b248109"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="98"/> <parameter name="XML_PRODUCER_BEAN_ID" class="java.util.String"> <defaultValueExpression><![CDATA["data-producer-equipment-list"]]></defaultValueExpression> </parameter> <parameter name="PROJECT_ELEMENT_ID" class="java.util.String"/> <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"> <defaultValueExpression><![CDATA["C:UsersMagicDoesMonsDesktopFlex Reports"]]></defaultValueExpression> </parameter> <queryString language="xpath2"> <![CDATA[/report/record]]> </queryString> <field name="corporateIdentityName" class="java.lang.String"> <fieldDescription><![CDATA[/report/corporateIdentityName]]></fieldDescription> </field> <field name="logoImage" class="java.lang.String"> <fieldDescription><![CDATA[/report/logoImage]]></fieldDescription> </field> <field name="locationAddress" class="java.lang.String"> <fieldDescription><![CDATA[/report/locationAddress]]></fieldDescription> </field> <field name="leftAddressCaption" class="java.lang.String"> <fieldDescription><![CDATA[/report/leftAddressCaption]]></fieldDescription> </field> <field name="leftAddressBlock" class="java.lang.String"> <fieldDescription><![CDATA[/report/leftAddressBlock]]></fieldDescription> </field> <field name="rightAddressCaption" class="java.lang.String"> <fieldDescription><![CDATA[/report/rightAddressCaption]]></fieldDescription> </field> <field name="rightAddressBlock" class="java.lang.String"> <fieldDescription><![CDATA[/report/rightAddressBlock]]></fieldDescription> </field> <field name="elementNameCaption" class="java.lang.String"> <fieldDescription><![CDATA[/report/elementNameCaption]]></fieldDescription> </field> <field name="elementName" class="java.lang.String"> <fieldDescription><![CDATA[/report/elementName]]></fieldDescription> </field> <field name="topLevelElementNumber" class="java.lang.String"> <fieldDescription><![CDATA[/report/topLevelElementNumber]]></fieldDescription> </field> <field name="shippingMethod" class="java.lang.String"> <fieldDescription><![CDATA[/report/shippingMethod]]></fieldDescription> </field> <field name="number" class="java.lang.String"> <fieldDescription><![CDATA[/report/number]]></fieldDescription> </field> <field name="numberCaption" class="java.lang.String"> <fieldDescription><![CDATA[/report/numberCaption]]></fieldDescription> </field> <field name="startDateCaption" class="java.lang.String"> <fieldDescription><![CDATA[/report/startDateCaption]]></fieldDescription> </field> <field name="endDateCaption" class="java.lang.String"> <fieldDescription><![CDATA[/report/endDateCaption]]></fieldDescription> </field> <field name="startDate" class="java.lang.String"> <fieldDescription><![CDATA[/report/startDate]]></fieldDescription> </field> <field name="endDate" class="java.lang.String"> <fieldDescription><![CDATA[/report/endDate]]></fieldDescription> </field> <field name="returnMethod" class="java.lang.String"> <fieldDescription><![CDATA[/report/returnMethod]]></fieldDescription> </field> <field name="quantity" class="java.lang.String"> <fieldDescription><![CDATA[quantity]]></fieldDescription> </field> <field name="description" class="java.lang.String"> <fieldDescription><![CDATA[description]]></fieldDescription> </field> <field name="stencil" class="java.lang.String"> <fieldDescription><![CDATA[stencil]]></fieldDescription> </field> <field name="barcode" class="java.lang.String"> <fieldDescription><![CDATA[barcode]]></fieldDescription> </field> <field name="serialNumber" class="java.lang.String"> <fieldDescription><![CDATA[serialNumber]]></fieldDescription> </field> <field name="createdBy" class="java.lang.String"> <fieldDescription><![CDATA[/report/createdBy]]></fieldDescription> </field> <field name="generateDate" class="java.lang.String"> <fieldDescription><![CDATA[/report/generateDate]]></fieldDescription> </field> <field name="totalWeightInPounds" class="java.lang.String"> <fieldDescription><![CDATA[/report/totalWeightInPounds]]></fieldDescription> </field> <field name="containerStencil" class="java.lang.String"> <fieldDescription><![CDATA[containerStencil]]></fieldDescription> </field> <field name="weightInPoundsExtended" class="java.lang.String"> <fieldDescription><![CDATA[weightInPoundsExtended]]></fieldDescription> </field> <field name="totalReplacementValue" class="java.lang.String"> <fieldDescription><![CDATA[/report/totalReplacementValue]]></fieldDescription> </field> <field name="containerDescription" class="java.lang.String"> <fieldDescription><![CDATA[containerDescription]]></fieldDescription> </field> <variable name="REPORT_PAGE" class="java.lang.Integer" resetType="None" incrementType="Page"> <variableExpression><![CDATA[$V{PAGE_NUMBER}]]></variableExpression> </variable> <group name="Container"> <groupExpression><![CDATA[$F{containerDescription}]]></groupExpression> <groupHeader> <band/> </groupHeader> <groupFooter> <band/> </groupFooter> </group> <group name="Stencil"> <groupExpression><![CDATA[$F{containerStencil}]]></groupExpression> <groupHeader> <band/> </groupHeader> <groupFooter> <band height="16"> <textField evaluationTime="Group" evaluationGroup="Container" isBlankWhenNull="true"> <reportElement isPrintRepeatedValues="false" x="0" y="1" width="555" height="14" uuid="00df264c-280e-4a38-8b2a-9e3becd4d0f2"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Stencil Group Footer"]]></textFieldExpression> </textField> </band> </groupFooter> </group> <background> <band splitType="Stretch"/> </background> <title> <band height="194" splitType="Stretch"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="200" height="15" uuid="f57ce342-f809-479b-ae8c-02a7079e68cc"/> <textElement verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{corporateIdentityName}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement x="0" y="15" width="200" height="60" uuid="6312d961-6f5f-4ab3-bc8d-be1f06531b93"/> <textElement verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{locationAddress}]]></textFieldExpression> </textField> <staticText> <reportElement x="429" y="57" width="126" height="12" uuid="24f164c4-4627-4bbf-97b0-f9367f250cb5"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="8"/> </textElement> <text><![CDATA[VAT Reg 296 3072 39]]></text> </staticText> <staticText> <reportElement x="429" y="69" width="126" height="13" uuid="ba7e53e9-f840-4f38-92c3-84d8811b3d99"/> <box padding="1" topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="8"/> </textElement> <text><![CDATA[Company Reg 318 1801]]></text> </staticText> <frame> <reportElement x="429" y="0" width="126" height="57" uuid="8a5887e2-44a2-4845-90d6-6b18a715f929"/> <box> <pen lineWidth="3.0" lineStyle="Double"/> <topPen lineWidth="3.0" lineStyle="Double"/> <leftPen lineWidth="3.0" lineStyle="Double"/> <bottomPen lineWidth="3.0" lineStyle="Double"/> <rightPen lineWidth="3.0" lineStyle="Double"/> </box> <image hAlign="Center" vAlign="Middle"> <reportElement x="3" y="3" width="120" height="39" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#DBDBDB" uuid="4aaae8e5-d070-4ef2-9a55-28dcbb9491a0"/> <imageExpression><![CDATA[$F{logoImage}]]></imageExpression> </image> <staticText> <reportElement positionType="Float" x="2" y="42" width="122" height="15" isPrintWhenDetailOverflows="true" uuid="5aaa2b95-f647-493d-9a78-4e6e1a195ff1"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Verdana" size="12"/> <paragraph lineSpacing="Single"/> </textElement> <text><![CDATA[P A H I R E L T D]]></text> </staticText> </frame> <line> <reportElement positionType="Float" x="0" y="83" width="555" height="1" uuid="588d4a6c-0252-4259-a6b4-677b70a7a8a4"/> </line> <staticText> <reportElement positionType="Float" x="0" y="85" width="200" height="28" forecolor="#666666" uuid="b46b2090-dfed-4078-b05d-3879c7000e0c"/> <box leftPadding="1"/> <textElement verticalAlignment="Middle"> <font size="22" isBold="true"/> </textElement> <text><![CDATA[DELIVERY NOTE]]></text> </staticText> <textField> <reportElement positionType="Float" x="0" y="113" width="230" height="15" uuid="66c9e30e-8ecd-4bda-b87c-d64f353fe7a9"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textFieldExpression><![CDATA[$F{leftAddressCaption}]]></textFieldExpression> </textField> <textField> <reportElement positionType="Float" x="0" y="128" width="230" height="65" uuid="d9b7ab2b-a606-4ebe-8c08-fef8ac155c96"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textFieldExpression><![CDATA[$F{leftAddressBlock}]]></textFieldExpression> </textField> <textField> <reportElement positionType="Float" x="325" y="113" width="230" height="15" uuid="94fe40f9-78ad-4a26-b141-09de39e62e7e"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textFieldExpression><![CDATA[$F{rightAddressCaption}]]></textFieldExpression> </textField> <textField> <reportElement positionType="Float" x="325" y="128" width="230" height="65" uuid="970274ec-b9c6-48e6-9df5-e5a1622a6781"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textFieldExpression><![CDATA[$F{rightAddressBlock}]]></textFieldExpression> </textField> </band> </title> <pageHeader> <band height="28" splitType="Stretch"> <textField> <reportElement x="0" y="1" width="65" height="13" uuid="4eb23f1f-8907-4a0c-824e-65ebacb66853"/> <box> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{elementNameCaption}]]></textFieldExpression> </textField> <textField> <reportElement x="65" y="1" width="195" height="13" uuid="bb749342-95fb-4781-8ac1-dcca84aae3dd"/> <box> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center"/> <textFieldExpression><![CDATA[$F{elementName}]]></textFieldExpression> </textField> <textField> <reportElement x="260" y="1" width="65" height="13" uuid="89ceb075-0c43-45e8-87ee-f3b42af18e4b"/> <box> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center"/> <textFieldExpression><![CDATA["Job No."]]></textFieldExpression> </textField> <textField> <reportElement x="325" y="1" width="65" height="13" uuid="98dc715a-53f5-476c-98c2-94ec58b5ed69"/> <box> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{topLevelElementNumber}]]></textFieldExpression> </textField> <textField> <reportElement x="390" y="1" width="65" height="13" uuid="f5bddfef-8371-476b-8cee-0323b4859693"/> <box> <pen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Shipping:"]]></textFieldExpression> </textField> <textField> <reportElement x="455" y="1" width="100" height="13" uuid="a7945bb2-28c8-4681-8830-5765884c0dc1"/> <box leftPadding="0" rightPadding="0"> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{shippingMethod}]]></textFieldExpression> </textField> <textField> <reportElement x="0" y="13" width="65" height="13" uuid="bf772d34-f875-4b66-a2b9-8a183465cdd3"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{numberCaption}]]></textFieldExpression> </textField> <textField> <reportElement x="65" y="13" width="65" height="13" uuid="76555379-487f-4aa1-bab0-65b561ba0ae2"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{number}]]></textFieldExpression> </textField> <textField> <reportElement x="130" y="13" width="65" height="13" uuid="4d6e74af-5796-4141-bf82-08570474d7bc"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Ship Date"]]></textFieldExpression> </textField> <textField> <reportElement x="195" y="13" width="65" height="13" uuid="f5c02008-7791-49c6-b9bf-28ab7723eeae"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{startDate}]]></textFieldExpression> </textField> <textField> <reportElement x="260" y="13" width="65" height="13" uuid="ee89e8a4-7366-45f3-afdd-2ec5ee9980f6"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Return Date"]]></textFieldExpression> </textField> <textField> <reportElement x="325" y="13" width="65" height="13" uuid="3b36754e-8a49-482b-a05f-25d89690814b"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{endDate}]]></textFieldExpression> </textField> <textField> <reportElement x="390" y="13" width="65" height="13" uuid="83c928a4-81a8-4422-b18e-443e92fe20ac"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Return:"]]></textFieldExpression> </textField> <textField> <reportElement x="455" y="13" width="100" height="13" uuid="f54d9861-078b-4a47-9e5d-b7ab6168bddf"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{returnMethod}]]></textFieldExpression> </textField> </band> </pageHeader> <columnHeader> <band height="16" splitType="Stretch"> <textField> <reportElement x="0" y="1" width="25" height="14" uuid="d51caad9-8236-46f4-8a98-880746705ed8"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Qty"]]></textFieldExpression> </textField> <textField> <reportElement x="25" y="1" width="270" height="14" uuid="18ef9171-2814-4e41-9968-c509479ee4cf"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Description"]]></textFieldExpression> </textField> <textField> <reportElement x="295" y="1" width="70" height="14" uuid="f63b8cbf-f2aa-4c26-9be5-368910b94cbc"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Barcode"]]></textFieldExpression> </textField> <textField> <reportElement x="365" y="1" width="140" height="14" uuid="8f3cbb2f-034e-4e3d-b8fe-2106e0624810"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Serial No."]]></textFieldExpression> </textField> <textField> <reportElement x="505" y="1" width="50" height="14" uuid="68c19c4b-b61d-4fb5-aaf3-893702e178ca"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Weight"]]></textFieldExpression> </textField> </band> </columnHeader> <detail> <band height="16" splitType="Stretch"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="0" y="1" width="25" height="14" isPrintWhenDetailOverflows="true" uuid="1e0db173-fa01-4aab-887d-cfe58f214de7"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{quantity}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="25" y="1" width="270" height="14" isPrintWhenDetailOverflows="true" uuid="f422808e-1718-47a4-afbd-87b29d2c03f9"/> <textElement verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{description}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="295" y="1" width="70" height="14" isPrintWhenDetailOverflows="true" uuid="f7da0acf-59e4-4790-b467-4582c6d2392a"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{barcode}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="365" y="1" width="140" height="14" isPrintWhenDetailOverflows="true" uuid="7398efd1-8f92-46ec-8211-3db58202de1b"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{serialNumber}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="505" y="1" width="50" height="14" isPrintWhenDetailOverflows="true" uuid="59df5a70-5ad0-44ca-8575-f8bbe50e7e28"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{weightInPoundsExtended}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band splitType="Stretch"/> </columnFooter> <pageFooter> <band height="30" splitType="Stretch"> <line> <reportElement x="0" y="1" width="555" height="1" uuid="9a213636-770f-4742-9817-1b4edab6268d"/> </line> <textField> <reportElement x="62" y="2" width="100" height="14" uuid="b3a7ef05-2786-4f4d-a0f0-cc46e6fa0654"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{createdBy}]]></textFieldExpression> </textField> <textField> <reportElement x="30" y="15" width="100" height="14" uuid="8f960d2d-93d1-4690-9dc4-5294d3833c51"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{generateDate}]]></textFieldExpression> </textField> <textField> <reportElement x="227" y="2" width="100" height="14" uuid="51024ee6-bb32-4f48-999e-73866704b19b"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{topLevelElementNumber}]]></textFieldExpression> </textField> <textField evaluationTime="Auto"> <reportElement x="485" y="2" width="70" height="14" uuid="b97509f3-3364-46ab-beba-9afba5ff8422"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Right" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Page " + $V{REPORT_PAGE} + " of " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField> <reportElement x="0" y="2" width="62" height="14" uuid="bee03daa-b931-4a36-b2ac-c883aee0d021"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Created By:"]]></textFieldExpression> </textField> <textField> <reportElement x="0" y="15" width="30" height="14" uuid="090f2546-db74-40bc-832c-9c29b095bd4e"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Date:"]]></textFieldExpression> </textField> <textField> <reportElement x="227" y="15" width="100" height="14" forecolor="#3399FF" uuid="034c3072-dca0-41bb-946e-282acbcb939c"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["www.skanpa.co.uk"]]></textFieldExpression> </textField> </band> </pageFooter> <lastPageFooter> <band height="30" splitType="Prevent"> <textField> <reportElement x="229" y="15" width="100" height="14" forecolor="#3399FF" uuid="496db2f1-2c0d-45ef-ab5b-48a67a8d6e1f"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["www.skanpa.co.uk"]]></textFieldExpression> </textField> <textField> <reportElement x="0" y="2" width="62" height="14" uuid="93b9de21-99a0-466f-9680-a739e1b24b9f"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Created By:"]]></textFieldExpression> </textField> <textField> <reportElement x="229" y="2" width="100" height="14" uuid="dc869e04-21d8-4970-b15d-c4265103f315"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{topLevelElementNumber}]]></textFieldExpression> </textField> <textField> <reportElement x="62" y="2" width="100" height="14" uuid="b922d89e-99c0-4ff9-8168-a1ecc9aa5aa3"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{createdBy}]]></textFieldExpression> </textField> <textField> <reportElement x="30" y="15" width="100" height="14" uuid="634e4a9d-2525-4a54-b0ac-316a218ff989"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{generateDate}]]></textFieldExpression> </textField> <line> <reportElement x="2" y="1" width="555" height="1" uuid="b2c4f3ac-5eb6-442d-ad39-fbbb33df78dc"/> </line> <textField> <reportElement x="0" y="15" width="30" height="14" uuid="d75b251a-6aa4-42c7-b33e-fc27dffe35d0"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Date:"]]></textFieldExpression> </textField> <textField evaluationTime="Auto"> <reportElement x="485" y="2" width="70" height="14" uuid="b4d82bbd-8543-4270-aa9b-e6ade7b18fff"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Right" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Page " + $V{REPORT_PAGE} + " of " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> </band> </lastPageFooter> <summary> <band height="128" splitType="Stretch"> <textField> <reportElement x="405" y="1" width="100" height="14" isPrintInFirstWholeBand="true" uuid="b2427138-34c9-425c-bc6a-c538c7be8bee"/> <textElement textAlignment="Right" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{totalWeightInPounds} == null ? null : "Total Weight"]]></textFieldExpression> </textField> <textField> <reportElement x="505" y="1" width="50" height="14" isPrintInFirstWholeBand="true" uuid="66c78b3e-d2be-4390-8694-4eed30d72789"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{totalWeightInPounds}]]></textFieldExpression> </textField> <line> <reportElement x="0" y="0" width="555" height="1" isPrintInFirstWholeBand="true" uuid="6b99d9b2-f0e0-4a2d-b4fe-55fcbc93e523"/> </line> <textField isStretchWithOverflow="true"> <reportElement x="0" y="20" width="555" height="16" isPrintInFirstWholeBand="true" uuid="301af05f-e21c-4166-8550-76bdecb92f34"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["I confirm we have received the above items and accept the terms and conditions of Skan PA Hire Ltd, a copy of which is included and also available at www.skanpa.co.uk"]]></textFieldExpression> </textField> <textField> <reportElement x="0" y="1" width="100" height="14" isPrintInFirstWholeBand="true" uuid="215531e0-0859-4c61-812d-cf0d43d577e6"/> <textElement textAlignment="Right" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{totalReplacementValue} == null ? null : "Insurance Value"]]></textFieldExpression> </textField> <textField> <reportElement x="100" y="1" width="50" height="14" isPrintInFirstWholeBand="true" uuid="407e0e72-34ff-477b-99a2-3325c7565dea"/> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{totalReplacementValue}]]></textFieldExpression> </textField> <textField> <reportElement x="37" y="66" width="238" height="20" isPrintInFirstWholeBand="true" uuid="3b5a470a-1088-4538-9512-eb5faf97ae0d"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font isBold="true"/> </textElement> <textFieldExpression><![CDATA["Authorised Signature of Hirer or Reprasentative."]]></textFieldExpression> </textField> <textField> <reportElement x="175" y="106" width="100" height="20" isPrintInFirstWholeBand="true" uuid="c128a482-45e9-40bb-b166-52f8d5601d3d"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font isBold="true"/> </textElement> <textFieldExpression><![CDATA["Print Name."]]></textFieldExpression> </textField> <textField> <reportElement x="275" y="66" width="200" height="20" isPrintInFirstWholeBand="true" uuid="e36db4ce-87b3-43f0-bad0-259e083294ea"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineStyle="Dotted"/> <topPen lineStyle="Dotted"/> <leftPen lineStyle="Dotted"/> <bottomPen lineWidth="1.0" lineStyle="Dotted"/> <rightPen lineStyle="Dotted"/> </box> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[" X "]]></textFieldExpression> </textField> <textField> <reportElement x="275" y="106" width="200" height="20" isPrintInFirstWholeBand="true" uuid="6962cad0-2332-4c78-9386-86e0bcf1a2a6"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineStyle="Dotted"/> <topPen lineStyle="Dotted"/> <leftPen lineStyle="Dotted"/> <bottomPen lineWidth="1.0" lineStyle="Dotted"/> <rightPen lineStyle="Dotted"/> </box> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[" X "]]></textFieldExpression> </textField> <textField> <reportElement x="475" y="66" width="30" height="20" isPrintInFirstWholeBand="true" uuid="de0c49c9-d33a-48b0-81bb-beec9477b451"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font isBold="true"/> </textElement> <textFieldExpression><![CDATA["Date."]]></textFieldExpression> </textField> <textField> <reportElement x="505" y="66" width="50" height="20" isPrintInFirstWholeBand="true" uuid="65ab051d-ac18-4631-ac9f-295cff0b56b7"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineStyle="Dotted"/> <topPen lineStyle="Dotted"/> <leftPen lineStyle="Dotted"/> <bottomPen lineWidth="1.0" lineStyle="Dotted"/> <rightPen lineStyle="Dotted"/> </box> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[" X "]]></textFieldExpression> </textField> </band> </summary> </jasperReport>
  2. OK, having some problems with a dynamic layout. I have a frame that i want to expand in the Page Footer of my report. I want to fix this frame so that it expands upwards the more information that it contains. So i want it to stretch relative to ContainerBottom but every time i use this stretch type the report causes a fault Caused by: net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 869; columnNumber: 130; cvc-enumeration-valid: Value 'ContainerBottom' is not facet-valid with respect to enumeration '[NoStretch, RelativeToTallestObject, RelativeToBandHeight]'. It must be a value from the enumeration. Can anyone shed any light on this? as i'd like to get my report looking correct but there seems to be some discepancy. Mark
  3. OK, sorry if this one is quite simple. I have report where the first column needs to be a number that increases by the quantity of an item in a later column. Item NumberDescriptionQuantity 1Speaker1 2 - 4Cable3 5Amplifier1 6 - 9Power Cable4 So the item number increases as the quantity of items increases but is a product of the item number before plus the new quantity. Report_Count doesn't quite do it. It just gives me an incremental count of the rows. Any help greatly appreciated.
×
×
  • Create New...