schmatte Posted March 26, 2010 Share Posted March 26, 2010 Hi,we use the pageFooter-section to print out some text at each bottom of the page. This works fine with PDF, but in Excel the position of the page footer is incorrect. On the first page no pageFooter appears, instead of the pageFooter of the first side is in the middle of the second side (we created a report with 3 sides) and so on. No pageFooter has in Excel the correct position. Does there exist an additional option or something else to get the expected position of the pageFooter in Excel with JasperReports 3.7.1?RegardsCode:<?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="excelPageFooter" pageWidth="950" pageHeight="768" orientation="Landscape" columnWidth="950" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <field name="line" class="java.lang.String"/> <detail> <band height="20"> <textField> <reportElement x="0" y="0" width="140" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{line}]]></textFieldExpression> </textField> </band> </detail> <pageFooter> <band height="27"> <staticText> <reportElement x="770" y="7" width="40" height="20"/> <textElement/> <text><![CDATA[seite]]></text> </staticText> <textField> <reportElement x="810" y="7" width="20" height="20"/> <textElement/> <textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> <staticText> <reportElement x="830" y="7" width="40" height="20"/> <textElement/> <text><![CDATA[von]]></text> </staticText> <textField evaluationTime="Report"> <reportElement x="870" y="7" width="30" height="20"/> <textElement/> <textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> <staticText> <reportElement x="900" y="7" width="50" height="20"/> <textElement/> <text><![CDATA[seiten]]></text> </staticText> </band> </pageFooter></jasperReport> 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