Summary with conditional items

Hello,

I have a report with conditionnal items on the summary.

It seems that if the items are not displayed, the space used for the items are kept for the display of the summary Band. The problem is that there is often a new page with the value of the summary... but the report look like it has the space to put the data of the summary in the before last page.

Has somebody already faced this problem ?

Thanks for your help

== EDIT ==

Here is an example :

You can see the JRXML here, with tree frames :

JRXML file

If all the tree frames are displayed, it's normal, I think, to have the 2 pages in the PDF :

PDF 2 pages - OK

 

But if I add conditions on the second and the third frame, I have this result and it seems that there is the space to put the summary on the fist page : 

 

loic.jeanneret's picture
Joined: Mar 24 2021 - 1:04am
Last seen: 1 year 5 months ago

3 Answers:

@shreekrishnashankhwar

You gave me an idea and I found a method that works.

I've used a subform that I integrated in my summary.

The subform has 3 detail bands that contains my 3 frames described in my first message.

Form and SubformThe conditionnal displays are still binded to the frames and this time, it takes only the space it need.

loic.jeanneret's picture
Joined: Mar 24 2021 - 1:04am
Last seen: 1 year 5 months ago

You can chnage in Page Seetting to Put Summary on New Page it will display at the last.

If you want to display with header and footer then selected Summary with Header footer.

As what you have designed .

or You want your Design to put summary in single page Then Do no Set above option just change into deisgn then summary come in 1 page.

To do this check total size of your page if its 792 then Make sure your total band Size should not exceed then this .

I am sure that your output will come in single page.

eg. as per your desciption

Title + Page header + Column Header + Details + Footer + Summary Bands = 750

Details data should not change band height.

(In Simple just Reduce the Size of your Bands)

Thanks

 

 

 

 

shreekrishna.shankhwar's picture
Joined: Mar 26 2021 - 12:50am
Last seen: 8 months 1 week ago

Thanks for your reply.

The problem is that I can't reduce the band height. They are at their minimal. But with the conditionnals fields, you can see in the last example that there is the place to put the summary on the first page.

So there is no other way for the conditionnal lines to be "removed" from the band height ?

loic.jeanneret's picture
Joined: Mar 24 2021 - 1:04am
Last seen: 1 year 5 months ago
Feedback
randomness