jwindberg Posted December 13, 2006 Share Posted December 13, 2006 ok, so we need to print hundreds of invoices.These invoices get feed to a pitney bows folder/evelope stuffer. You print a single line on every page, except the last one so that the folder knows which is the last page. How can I reliably print something on the last page of a jasper report? and if you say, lastPageFooter, I will tell you, "not if the summary falls onto the last page by itself". and if you suggest doing this: <variable name="CURRENT_PAGE" class="java.lang.Integer" resetType="Page" calculation="Nothing"> <variableExpression><![CDATA[$V{PAGE_NUMBER}]]></variableExpression> </variable> <background> <band height="432" isSplitAllowed="true"> <image evaluationTime="Auto" hyperlinkType="None" hyperlinkTarget="Self"> <reportElement x="564" y="400" width="30" height="15" key="image-7" /> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000" /> <graphicElement stretchType="NoStretch" /> <imageExpression> $V{CURRENT_PAGE}.equals($V{PAGE_NUMBER}) ? <![CDATA["C:\dev\projects\reports\WebContent\WEB-INF\reports\finance\graphics\omr_end.jpg"]]> : <![CDATA["C:\dev\projects\reports\WebContent\WEB-INF\reports\finance\graphics\omr_start.jpg"]]> </imageExpression> </image> </band> </background> I will tell you, that, for whatever reason, nothing prints on the last page. No, really. Nothing. ok, I give up. I'm going to start coding directly in iText or something. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted December 14, 2006 Share Posted December 14, 2006 Hi, Give up using the summary section and simulate it using a dummy group as explained here:http://jasperforge.org/sf/wiki/do/viewPage/projects.jasperreports/wiki/FAQ12Then use the lastPageFooter and place elements at nevatige Y if you want them to appear higher on the last page. I hope this helps.Teodor 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