Jump to content
Changes to the Jaspersoft community edition download ×

Print summery band if Detail band overflows


rohitit3031

Recommended Posts

Hi ,

I have requirement in my report as below :

1: Detail band data should not print in next page if detail band data overflows . I mean detail band data should come in first page only becasue in my report i have genearte only  1 page . Remaing detail information I am showing in summery band .For this I kept Split type property of detail band as 'Prevent' .  --(Is this work in rerport ?) . 

2: If detail band overflows then only Summery band data prints otherwise it should not print in pdf  . 

Kindly tell me how to achive this

Thanks

Rohit 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The splitting type just tells the engine, if the detailband itself is allowed to split to the next page, if the remaining space at the current page isn't enough.

It does NOT tell you, that the report itself should just render one page at all!

So in your case, I would just place all your fields to the title section... this is rendered just once and should already has access to all fields of the first resulting record of your query. If you have more that one records you could than print the summary (printwhenexpression) with a hint ... $V{REPORT_COUNT} has perhaps the current (last) number of records.

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