Jump to content
Changes to the Jaspersoft community edition download ×

Removing line in footer


Recommended Posts


I have a problem removing a line (when it's blank in the footer). I have two frames, A and B (A above B). B can be blank and when it's blank I want A to move down to the bottom of the page (now I have an empty space between A and the bottom of the page). I have set isRemoveLineWhenBlank="true" for B but with no success. Also, I have tried setting positionType="FixRelativeToBottom".

Here is my code:

<pageFooter>                <band height="35">                <frame>                    <reportElement mode="Opaque" x="0" y="10" width="550" height="10" backcolor="white"/>                    <box>                        <pen lineColor="black"/>                        <topPen lineWidth="0.5"/>                    </box>                    <textField>                        <reportElement mode="Opaque" x="0" y="0" width="400" height="10" style="Margins" backcolor="white"/>                        <textElement verticalAlignment="Bottom" textAlignment="Left"/>                        <textFieldExpression><![CDATA[$P{CodElement}+" - "+$P{cod_formular}]]></textFieldExpression>                    </textField>                    <textField evaluationTime="Now">                        <reportElement mode="Opaque" x="400" y="0" width="130" height="10" style="Margins" backcolor="white"/>                        <textElement verticalAlignment="Bottom" textAlignment="Right"/>                        <textFieldExpression><![CDATA["Pagina "+$V{PAGE_NUMBER}+" din"]]></textFieldExpression>                    </textField>                    <textField evaluationTime="Report">                        <reportElement mode="Opaque" x="530" y="0" width="20" height="10" style="Margins" backcolor="white"/>                        <textElement verticalAlignment="Bottom" textAlignment="Left"/>                        <textFieldExpression><![CDATA[" "+$V{PAGE_NUMBER}]]></textFieldExpression>                    </textField>                </frame>                <frame>                    <reportElement mode="Opaque" x="0" y="20" width="550" height="15" isRemoveLineWhenBlank="true">                         <printWhenExpression><![CDATA[$P{isContGratuit}]]></printWhenExpression>                    </reportElement>                    <textField>                        <reportElement mode="Opaque" x="75" y="0" width="250" height="15" backcolor="white"/>                        <textElement markup="styled" verticalAlignment="Bottom" textAlignment="Right"/>                        <textFieldExpression><![CDATA["Formular generat cu varianta <style isBold=true">gratuita</style> a programului]]></textFieldExpression>                    </textField>                    <image scaleImage="RetainShape" hAlign="Center" vAlign="Bottom">                        <reportElement x="330" y="0" width="45" height="15" key="xls.export.hidden"/>                        <graphicElement/>                        <imageExpression class="java.awt.Image"><![CDATA[$P{SmallLogo}]]></imageExpression>                    </image>                    <textField>                        <reportElement mode="Opaque" x="380" y="0" width="95" height="15" backcolor="white"/>                        <textElement verticalAlignment="Bottom" textAlignment="Left"/>                        <textFieldExpression><![CDATA["(www.eDevize.ro)"]]></textFieldExpression>                    </textField>                </frame>            </band>        </pageFooter>[/code]
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...