svedec Posted February 4, 2008 Share Posted February 4, 2008 Hi, when I run my report, I get all my results nicely in 1 page in my JRViewer preview. All the data also should fit on 1 A4 page.But when I preview (or save) in PDF, I get 2 additional, empty pages :unsure: 1 which contains the header and footerand a third one which only contains the header. Anyone got any idea how this might occur?I limit the printing of my search results with the "Print When" Expression like this : new Boolean($V{REPORT_COUNT}.intValue() <= $V{MAX_RESULT}.intValue()) MAX_RESULT is my own variable which is set to 12. Maybe it has someting to do with this, but I don't know, I don't see anything printed on the extra pages... Looking forward to hearing from you! Best regards,Sven. Post edited by: svedec, at: 2008/02/04 14:31Post edited by: svedec, at: 2008/02/04 14:32 Link to comment Share on other sites More sharing options...
svedec Posted February 4, 2008 Author Share Posted February 4, 2008 UPDATE: I checked "Remove line when blank" on every textField in the detail-band, and now the 2nd page is gone. I'm still left with the last one though, the one with only the header :huh: Link to comment Share on other sites More sharing options...
Pedja Posted February 4, 2008 Share Posted February 4, 2008 Set all the bands that you do not use to 0px (like the Summary band, if not used), and see if anything changes. Link to comment Share on other sites More sharing options...
svedec Posted February 4, 2008 Author Share Posted February 4, 2008 Thanks, I get a funny result : I still get a 2nd page, with with footer and header this time. Link to comment Share on other sites More sharing options...
svedec Posted February 12, 2008 Author Share Posted February 12, 2008 ]http://users.skynet.be/sd/jasper.jpg Hi, I'm still getting this problem.The subreport in the footer makes the report spread over 2 pages, the first being blank in the detail band :dry: My design is : ]http://users.skynet.be/sd/jasper2.jpg But when I make the footer, the page, or the detail a bit larger, it will generate 3 pages, 2 of which being blank. As you can see, I've got a lot of unused space in the detail band on PDF page 2, how can I shrink this and give my footer a bit more place?? Link to comment Share on other sites More sharing options...
svedec Posted February 12, 2008 Author Share Posted February 12, 2008 I reckon the problem is in the limitation with the "print when" expression. The report keeps printing empty lines, without data. So let's say the query returns 20 results, I limit it to 10 with the "print when" expression, but still he generates the space for 20 results ... So how do I REALLY cut of fafter 10 results? Link to comment Share on other sites More sharing options...
svedec Posted February 15, 2008 Author Share Posted February 15, 2008 ok, found a fix, just turned off pagination ... 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