Jump to content

I need to print on the lastPage


jwindberg

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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...