tubamanu Posted March 5, 2009 Share Posted March 5, 2009 hi there, currently i'm working on some kind of shipping order and i got a problem, maybe someone can help me: Title Element: In Title Element i how adress of the customer, my firm logo and information about the order. These 3 Parts are displayed only on the first page of the report. I used the title tag and it works fine.If there are too many articles in an orderlist, a new page is created. this also works. Now my problem is, that on the second, third....n page should only be displayed information about the order. There should be no logo and no custmer information to see. Currently i used pageHeader tag, but then, my order information is displayed twice on the first page, one in title the other in the pageHeader....maybe someone can help me, how to display on the first page only my title and on the following pages only the pageHeader.... thx! Link to comment Share on other sites More sharing options...
chrissy Posted March 5, 2009 Share Posted March 5, 2009 hi tubamanu,So I'm quite new to iReport I'm not sure if this is working, but what is about the "Printing when Expression" If you set it for the title to new Boolean($V{PAGE_NUMBER} = 1) and for the page header to new Boolean($V{PAGE_NUMBER} <> 1), then (if I'm right) the title is only shown on first page and the page header on all other pages.chrissy Link to comment Share on other sites More sharing options...
tubamanu Posted March 5, 2009 Author Share Posted March 5, 2009 yeees you're right :) thx a lot! Link to comment Share on other sites More sharing options...
softboxkid Posted November 23, 2010 Share Posted November 23, 2010 i 've got the same problem... and your solution didn't solve the problem.. i try to put new Boolean($V{PAGE_NUMBER} = = 1) at the band option. but there was an error "Incompatible operand types Integer and int" Link to comment Share on other sites More sharing options...
jrechter Posted November 30, 2010 Share Posted November 30, 2010 {PAGE_NUMBER} is an Integer Object. You need to get its intValue.Thus, your solution is:new Boolean($V{PAGE_NUMBER}.intValue() = = 1) 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