147852369 Posted May 8, 2015 Posted May 8, 2015 Hello, my reports are always blank between header and footer on the first page. I tried the solutions in other threads but nothing worked for me. What's wrong?<?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="report" language="groovy" pageWidth="3508" pageHeight="2480" orientation="Landscape" columnWidth="2920" leftMargin="294" rightMargin="294" topMargin="0" bottomMargin="0"> <property name="ireport.zoom" value="0.5131581182307088"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <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="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <style name="border right column" mode="Opaque" backcolor="#00FF66"> <box> <leftPen lineWidth="0.5" lineColor="#333333"/> <rightPen lineWidth="0.5" lineColor="#333333"/> </box> </style> <style name="border right header"> <box> <pen lineColor="#00FF66"/> <topPen lineColor="#00FF66"/> <leftPen lineColor="#00FF66"/> <bottomPen lineColor="#00FF66"/> <rightPen lineWidth="1.0" lineColor="#00FF66"/> </box> </style> <style name="border top footer"> <box> <topPen lineWidth="1.0" lineColor="#333333"/> </box> </style> <subDataset name="Table Dataset 1_1"> <parameter name="column1" class="java.lang.String"/> <parameter name="column2" class="java.lang.String"/> <parameter name="column3" class="java.lang.String"/> <parameter name="column4" class="java.lang.String"/> <parameter name="column5" class="java.lang.String"/> <parameter name="column6" class="java.lang.String"/> <parameter name="column7" class="java.lang.String"/> <queryString> <![CDATA[]]> </queryString> <field name="assignedmyCars" class="java.lang.String"> <fieldDescription><![CDATA[assignedmyCars]]></fieldDescription> </field> <field name="drivingLicences" class="java.lang.String"> <fieldDescription><![CDATA[drivingLicences]]></fieldDescription> </field> <field name="firstName" class="java.lang.String"> <fieldDescription><![CDATA[firstName]]></fieldDescription> </field> <field name="keys" class="java.lang.String"> <fieldDescription><![CDATA[keys]]></fieldDescription> </field> <field name="allowMyPimp" class="java.lang.String"> <fieldDescription><![CDATA[allowMyPimp]]></fieldDescription> </field> <field name="name" class="java.lang.String"> <fieldDescription><![CDATA[name]]></fieldDescription> </field> <group name="group1" isStartNewPage="true" isReprintHeaderOnEachPage="true"> <groupExpression><![CDATA[$V{PAGE_COUNT}%13==0]]></groupExpression> </group> </subDataset> <field name="pojos" class="java.util.List"/> <field name="diagramm_name" class="java.lang.String"/> <field name="start_date" class="java.lang.String"/> <field name="end_date" class="java.lang.String"/> <field name="until_msg_key" class="java.lang.String"/> <field name="create_date" class="java.lang.String"/> <field name="autor_msg_key" class="java.lang.String"/> <field name="create_msg_key" class="java.lang.String"/> <field name="autor" class="java.lang.String"/> <field name="column1" class="java.lang.String"/> <field name="column2" class="java.lang.String"/> <field name="column3" class="java.lang.String"/> <field name="column4" class="java.lang.String"/> <field name="column5" class="java.lang.String"/> <field name="column6" class="java.lang.String"/> <field name="column7" class="java.lang.String"/> <variable name="COUNT" class="java.lang.Integer"/> <group name="Group1"> <groupHeader> <band height="1397" splitType="Stretch"> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <componentElement> <reportElement key="table 3" x="0" y="0" width="2920" height="1328"/> <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> <datasetRun subDataset="Table Dataset 1_1"> <datasetParameter name="column1"> <datasetParameterExpression><![CDATA[$F{column1}]]></datasetParameterExpression> </datasetParameter> <datasetParameter name="column2"> <datasetParameterExpression><![CDATA[$F{column2}]]></datasetParameterExpression> </datasetParameter> <datasetParameter name="column3"> <datasetParameterExpression><![CDATA[$F{column3}]]></datasetParameterExpression> </datasetParameter> <datasetParameter name="column4"> <datasetParameterExpression><![CDATA[$F{column4}]]></datasetParameterExpression> </datasetParameter> <datasetParameter name="column5"> <datasetParameterExpression><![CDATA[$F{column5}]]></datasetParameterExpression> </datasetParameter> <datasetParameter name="column6"> <datasetParameterExpression><![CDATA[$F{column6}]]></datasetParameterExpression> </datasetParameter> <datasetParameter name="column7"> <datasetParameterExpression><![CDATA[$F{column7}]]></datasetParameterExpression> </datasetParameter> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{pojos})]]></dataSourceExpression> </datasetRun> <jr:column width="417"> <jr:columnHeader style="border right header" height="94" rowSpan="1"> <textField> <reportElement mode="Opaque" x="0" y="0" width="416" height="94" forecolor="#00FF66" backcolor="#669977"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="XYZDaxOfficeMed" size="40"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$P{column1}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:columnFooter style="border top footer" height="30" rowSpan="1"/> <jr:detailCell style="border right column" height="86" rowSpan="1"> <rectangle> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" backcolor="#FEFEFE"> <printWhenExpression><![CDATA[$V{PAGE_COUNT}%2==0]]></printWhenExpression> </reportElement> <graphicElement> <pen lineWidth="0.0"/> </graphicElement> </rectangle> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" forecolor="#669977"/> <box leftPadding="2"/> <textElement verticalAlignment="Middle"> <font fontName="XYZfont" size="40" isBold="false"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$V{REPORT_COUNT}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="417"> <jr:columnHeader style="border right header" height="94" rowSpan="1"> <textField> <reportElement mode="Opaque" x="0" y="0" width="416" height="94" forecolor="#00FF66" backcolor="#669977"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="XYZDaxOfficeMed" size="40"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$P{column2}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:columnFooter style="border top footer" height="30" rowSpan="1"/> <jr:detailCell style="border right column" height="86" rowSpan="1"> <rectangle> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" backcolor="#FEFEFE"> <printWhenExpression><![CDATA[$V{PAGE_COUNT}%2==0]]></printWhenExpression> </reportElement> <graphicElement> <pen lineWidth="0.0"/> </graphicElement> </rectangle> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" forecolor="#669977"/> <box leftPadding="2"/> <textElement verticalAlignment="Middle"> <font fontName="XYZfont" size="40" isBold="false"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$F{name}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="417"> <jr:columnHeader style="border right header" height="94" rowSpan="1"> <textField> <reportElement mode="Opaque" x="0" y="0" width="416" height="94" forecolor="#00FF66" backcolor="#669977"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="XYZDaxOfficeMed" size="40"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$P{column3}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:columnFooter style="border top footer" height="30" rowSpan="1"/> <jr:detailCell style="border right column" height="86" rowSpan="1"> <rectangle> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" backcolor="#FEFEFE"> <printWhenExpression><![CDATA[$V{PAGE_COUNT}%2==0]]></printWhenExpression> </reportElement> <graphicElement> <pen lineWidth="0.0"/> </graphicElement> </rectangle> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" forecolor="#669977"/> <box leftPadding="2"/> <textElement verticalAlignment="Middle"> <font fontName="XYZfont" size="40" isBold="false"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$F{firstName}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="417"> <jr:columnHeader style="border right header" height="94" rowSpan="1"> <textField isStretchWithOverflow="true"> <reportElement mode="Opaque" x="0" y="0" width="416" height="94" forecolor="#00FF66" backcolor="#669977" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="XYZDaxOfficeMed" size="40"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$P{column4}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:columnFooter style="border top footer" height="30" rowSpan="1"/> <jr:detailCell style="border right column" height="86" rowSpan="1"> <rectangle> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" backcolor="#FEFEFE"> <printWhenExpression><![CDATA[$V{PAGE_COUNT}%2==0]]></printWhenExpression> </reportElement> <graphicElement> <pen lineWidth="0.0"/> </graphicElement> </rectangle> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" forecolor="#669977"/> <box leftPadding="2"/> <textElement verticalAlignment="Middle"> <font fontName="XYZfont" size="40" isBold="false"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$F{keys}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="417"> <jr:columnHeader style="border right header" height="94" rowSpan="1"> <textField> <reportElement mode="Opaque" x="0" y="0" width="416" height="94" forecolor="#00FF66" backcolor="#669977" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="XYZDaxOfficeMed" size="40"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$P{column5}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:columnFooter style="border top footer" height="30" rowSpan="1"/> <jr:detailCell style="border right column" height="86" rowSpan="1"> <rectangle> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" backcolor="#FEFEFE"> <printWhenExpression><![CDATA[$V{PAGE_COUNT}%2==0]]></printWhenExpression> </reportElement> <graphicElement> <pen lineWidth="0.0"/> </graphicElement> </rectangle> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" forecolor="#669977" /> <box leftPadding="2"/> <textElement verticalAlignment="Middle"> <font fontName="XYZfont" size="40" isBold="false"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$F{drivingLicences}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="417"> <jr:columnHeader style="border right header" height="94" rowSpan="1"> <textField> <reportElement mode="Opaque" x="0" y="0" width="416" height="94" forecolor="#00FF66" backcolor="#669977" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="XYZDaxOfficeMed" size="40"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$P{column6}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:columnFooter style="border top footer" height="30" rowSpan="1"/> <jr:detailCell style="border right column" height="86" rowSpan="1"> <rectangle> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" backcolor="#FEFEFE"> <printWhenExpression><![CDATA[$V{PAGE_COUNT}%2==0]]></printWhenExpression> </reportElement> <graphicElement> <pen lineWidth="0.0"/> </graphicElement> </rectangle> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" forecolor="#669977"/> <box leftPadding="2"/> <textElement verticalAlignment="Middle"> <font fontName="XYZfont" size="40" isBold="false"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$F{assignedmyCars}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="417"> <jr:columnHeader style="border right header" height="94" rowSpan="1"> <textField> <reportElement mode="Opaque" x="0" y="0" width="416" height="94" forecolor="#00FF66" backcolor="#669977"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="XYZDaxOfficeMed" size="40"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$P{column7}]]></textFieldExpression> </textField> </jr:columnHeader> <jr:columnFooter style="border top footer" height="30" rowSpan="1"/> <jr:detailCell style="border right column" height="86" rowSpan="1"> <rectangle> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" backcolor="#FEFEFE"> <printWhenExpression><![CDATA[$V{PAGE_COUNT}%2==0]]></printWhenExpression> </reportElement> <graphicElement> <pen lineWidth="0.0"/> </graphicElement> </rectangle> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="0" y="0" width="416" height="86" isPrintWhenDetailOverflows="true" forecolor="#669977"/> <box leftPadding="2"/> <textElement verticalAlignment="Middle"> <font fontName="XYZfont" size="40" isBold="false"/> <paragraph leftIndent="28" rightIndent="28"/> </textElement> <textFieldExpression><![CDATA[$F{allowMyPimp}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> </jr:table> </componentElement> </band> </groupHeader> </group> <background> <band splitType="Stretch"/> </background> <pageHeader> <band height="721" splitType="Stretch"> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <frame> <reportElement x="0" y="220" width="2918" height="175"> <property name="local_mesure_unity" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="local_mesure_unitx" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textField> <reportElement x="50" y="100" width="1422" height="70" forecolor="#669977"> <property name="local_mesure_unitx" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> <textElement verticalAlignment="Middle"> <font fontName="XYZfont" size="50"/> </textElement> <textFieldExpression><![CDATA[$F{start_date}+" "+$F{until_msg_key}+" "+$F{end_date}]]></textFieldExpression> </textField> <textField> <reportElement x="1472" y="100" width="1444" height="70" forecolor="#669977"> <property name="local_mesure_unity" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="XYZfont" size="38"/> <paragraph tabStopWidth="128"/> </textElement> <textFieldExpression><![CDATA[$F{create_msg_key}+": "+$F{create_date}+" "+$F{autor_msg_key}+": "+$F{autor}]]></textFieldExpression> </textField> </frame> <line> <reportElement x="0" y="425" width="2920" height="1" forecolor="#669977"> <property name="local_mesure_unitwidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="local_mesure_unity" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> </reportElement> <graphicElement> <pen lineWidth="2.0"/> </graphicElement> </line> <line> <reportElement x="6" y="228" width="1" height="162"/> <graphicElement> <pen lineWidth="14.0" lineColor="#BA1026"/> </graphicElement> </line> <textField> <reportElement x="50" y="200" width="2867" height="117"> <property name="local_mesure_unitx" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="local_mesure_unitwidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="local_mesure_unitheight" value="pixel"/> </reportElement> <textElement verticalAlignment="Top"> <font fontName="XYZDaxOfficeMed" size="75" isBold="false"/> </textElement> <textFieldExpression><![CDATA[$F{diagramm_name}]]></textFieldExpression> </textField> </band> </pageHeader> <pageFooter> <band height="361" splitType="Stretch"> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <textField> <reportElement x="377" y="66" width="1134" height="55" forecolor="#669977"> <property name="local_mesure_unitwidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="local_mesure_unity" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="XYZfont" size="38"/> </textElement> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="1531" y="66" width="1134" height="55" forecolor="#669977"> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="local_mesure_unity" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="local_mesure_unitwidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="local_mesure_unitx" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="XYZfont" size="38"/> </textElement> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField> <reportElement x="1511" y="66" width="20" height="54" forecolor="#669977"/> <textElement textAlignment="Center"> <font fontName="XYZfont" size="38"/> </textElement> <textFieldExpression><![CDATA["|"]]></textFieldExpression> </textField> <line> <reportElement x="0" y="0" width="2919" height="1" forecolor="#669977"> <property name="local_mesure_unitx" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="local_mesure_unity" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="local_mesure_unitwidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <graphicElement> <pen lineWidth="2.0"/> </graphicElement> </line> <image> <reportElement x="0" y="51" width="377" height="75"/> <imageExpression><![CDATA["fxml/skin/images/1.png"]]></imageExpression> </image> <image> <reportElement x="2659" y="51" width="261" height="75"/> <imageExpression><![CDATA["fxml/skin/images/2.png"]]></imageExpression> </image> </band> </pageFooter></jasperReport>[/code]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now