Jump to content
We've recently updated our Privacy Statement, available here ×

AWieclawski

Members
  • Posts

    1
  • Joined

  • Last visited

AWieclawski's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. it could count one single page doc as two pages... but put below the last field initiation </field> <variable name="TOTAL_PAGE_NUMBER" class="java.lang.Integer" resetType="None" incrementType="Page"> <variableExpression><![CDATA[$V{PAGE_NUMBER}==null?$V{PAGE_NUMBER}:$V{PAGE_NUMBER}+1]]></variableExpression> </variable> and in the pageFooter section for ex. <pageFooter> <band height=".." splitType="..."> <property name="com.jaspersoft.studio.unit.height" value="px"/> <reportElement x=".." y=".." width="..." height=".." uuid="..."> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> </reportElement> <textElement textAlignment="..." verticalAlignment="..."> <font size="..." isBold="..."/> </textElement> <textFieldExpression><![CDATA[" Page " +$V{PAGE_NUMBER} + " / " +$V{TOTAL_PAGE_NUMBER} + " | powered by ..."]]></textFieldExpression> </textField> </pageFooter> I genarally suggest to use "Master" buil-in-system variables as follows: <textField evaluationTime="Master"> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[msg("Page {0} of {1}", $V{MASTER_CURRENT_PAGE}, $V{MASTER_TOTAL_PAGES})]]></textFieldExpression></textField> but vailable for JasperReports versions 6+
×
×
  • Create New...