cornel Posted September 29, 2017 Share Posted September 29, 2017 I have to change a jasper report in the footer section. The change is simple - from the name - CAROL ANN LOCKE to NANENE DAHMS. In running the report, i get "incorrect footer" error message when running the report.I have tried adding spaces (padding the name to be 15 characters) but that doesn't work.I have searched for other occurrences for the name CAROL but nothing.When we run the report with the name CAROL- the report works !Can someone suggest how to change the hardcoded name so that we don't get the error incorrect footer ? Here is the code snippet that works - with name CAROL - and one that gives error with name NANENE. Code that work: <pageFooter> <band height="14" splitType="Stretch"> <textField> <reportElement x="254" y="1" width="39" height="13" uuid="773b28bc-49e9-48cf-8560-a191da000a81"/> <textElement textAlignment="Right"> <font fontName="SansSerif" size="6"/> </textElement> <textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="293" y="1" width="40" height="13" uuid="e10fa88e-d3ce-4956-b3af-6649456526a1"/> <textElement> <font fontName="SansSerif" size="6"/> </textElement> <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band height="199"> <rectangle> <reportElement x="0" y="0" width="555" height="124" uuid="eea86557-b089-4434-b250-82b6d3b463b4"/> <graphicElement> <pen lineWidth="0.5"/> </graphicElement> </rectangle> <staticText> <reportElement mode="Opaque" x="285" y="124" width="270" height="30" backcolor="#FFFFFF" uuid="42f5f895-bccc-4a67-a9f7-07ae4a4f1faf"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineWidth="0.5"/> <topPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> <rightPen lineWidth="0.5"/> </box> <textElement verticalAlignment="Top"> <font fontName="SansSerif" size="7" isBold="false"/> </textElement> <text><![CDATA[Name of Authorized Signatory CAROL ANN LOCKE]]></text> Does not work:<pageFooter> <band height="14" splitType="Stretch"> <textField> <reportElement x="254" y="1" width="39" height="13" uuid="773b28bc-49e9-48cf-8560-a191da000a81"/> <textElement textAlignment="Right"> <font fontName="SansSerif" size="6"/> </textElement> <textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="293" y="1" width="40" height="13" uuid="e10fa88e-d3ce-4956-b3af-6649456526a1"/> <textElement> <font fontName="SansSerif" size="6"/> </textElement> <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band height="199"> <rectangle> <reportElement x="0" y="0" width="555" height="124" uuid="eea86557-b089-4434-b250-82b6d3b463b4"/> <graphicElement> <pen lineWidth="0.5"/> </graphicElement> </rectangle> <staticText> <reportElement mode="Opaque" x="285" y="124" width="270" height="30" backcolor="#FFFFFF" uuid="42f5f895-bccc-4a67-a9f7-07ae4a4f1faf"/> <box topPadding="1" leftPadding="1" bottomPadding="1" rightPadding="1"> <pen lineWidth="0.5"/> <topPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> <rightPen lineWidth="0.5"/> </box> <textElement verticalAlignment="Top"> <font fontName="SansSerif" size="7" isBold="false"/> </textElement> <text><![CDATA[Name of Authorized SignatoryNANENE DAHMS]]></text> Link to comment Share on other sites More sharing options...
bojan.brajkovic Posted September 29, 2017 Share Posted September 29, 2017 Would you be able to share .jrxml file and screenshot of both scenarios? Link to comment Share on other sites More sharing options...
hozawa Posted October 1, 2017 Share Posted October 1, 2017 May be because you have a carriage return after "Name of Authorized Signatory" when using CAROL ANN LOCKE and don't have on when using NANENE DAHMStext><![CDATA[Name of Authorized SignatoryCAROL ANN LOCKE]]></text>[/code]<text><![CDATA[Name of Authorized SignatoryNANENE DAHMS]]></text>[/code] Link to comment Share on other sites More sharing options...
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