aagustoni Posted October 24, 2012 Share Posted October 24, 2012 For compatibility reasons I am stuck to use iReport 3.0.0. so maybe what I am going to ask is not possible in that version. Practically I am using the variable PAGE_NUMBER as described in the documentation: evaluation time = "now" for the current page, evaluation time "report" for the total of the pages. The problem is that, no matter how I set the PAGE_NUMBER, no matter how many pages there are in the report, I keep receiving as output 1/1 I have tried searching the forums but no luck (or maybe it's blindness by my side) I attach also the source of my report, the relevant part is in the page footer. Thanks for any hint, I would not like to "implement" a counter by myself <?xml version="1.0" encoding="UTF-8" ?> name="Test" columnCount="1" printOrder="Horizontal" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> 92015,92016 select distinct board as board </p><p> from {kaledomanagement.Board} as board</p><p> where board in ( $P{ID} ) </p><p> order by board.name,board.description asc board.name board.description board.comment board.id board board.family "Détail Planche" new Integer($V{MYPAGE}.intValue()+ 1) new Integer(0) $F{board.id} x="0" y="0" width="535" height="2" forecolor="#0033FF" key="subreport-4" isRemoveLineWhenBlank="true"> (($P{TITLE}== null) || ($P{TITLE}.length() == 0) )?Boolean.FALSE:Boolean.TRUE $P{TITLE} TemplateProvider.getByRefVersion("/KaledoTemplates/SubReports/Standard_UserTitle.jrxml") mode="Opaque" x="278" y="493" width="100" height="18" backcolor="#66FFFF" key="textField"/> $F{board.id} x="420" y="461" width="100" height="18" key="textField"/> $V{MYPAGE} mode="Transparent" x="0" y="0" width="99" height="10" forecolor="#000000" backcolor="#FFFFFF" key="textField-6"/> new Date() mode="Transparent" x="476" y="0" width="26" height="10" forecolor="#000000" backcolor="#FFFFFF" key="textField-7"/> $V{PAGE_NUMBER} mode="Transparent" x="502" y="0" width="5" height="10" forecolor="#000000" backcolor="#FFFFFF" key="staticText-1"/> / mode="Transparent" x="507" y="0" width="28" height="10" forecolor="#000000" backcolor="#FFFFFF" key="textField-8"/> $V{PAGE_NUMBER} x="310" y="0" width="120" height="10" key="textField-11"/> $F{board.name} Link to comment Share on other sites More sharing options...
aagustoni Posted October 24, 2012 Author Share Posted October 24, 2012 A comment, I have posted the report source in my post, but it doesn't show up (if you don't look the post without rich editing). I think this is a FAQ, but how can I post my code without the forum to "filter" it? 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