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

Problematic PDF output


svedec

Recommended Posts

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 footer

and 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:31

Post edited by: svedec, at: 2008/02/04 14:32

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

]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

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

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