Detail Section increase

0

When detail section increase can I move the content automatically in other page?

Alessio.

Thanks.

alessio.oglialoro's picture
Joined: Mar 22 2019 - 3:15am
Last seen: 2 weeks 3 days ago

6 Answers:

0

???

When the detail band increases, it's mostly because of "self stretching" fields on it's contents (StretchWithOverflow=true) or because of a SubReport/ListElement that has dynamic content, so the parent detail must grow. So not sure what you want to reach or what's the problem!??!

You can adjust the split behaviour on a band... so default is "stretch", what means, that a detail can span to another page, if the remaining space is not enough... "prevent" means, that the whole detail is moved to next page, if the remaining space is not enough. Immediate, is more a mix of both... I've never understood the correct logic when it should be kept together or not when set to "immediate".

I guess the splitting type "prevent" could be your solution. Otherwise post an sample/screenshot, what the real problem is.

hth + regards

C-Box

C-Box's picture
1741
Joined: Jul 19 2006 - 5:58pm
Last seen: 2 days 14 hours ago
0

I have one Detail with vertical layout:

There are some frame each one with vertical layout

 

Every frame has four frame:

 

When the numer of frame increase in the detail band:

 

 

The datail doesn't expand in multiple page.

Every frame has condition: <printWhenExpression><![CDATA[$P{ParameterXXXX}.length()>0]]></printWhenExpression>

 

Thanks.

alessio.oglialoro's picture
Joined: Mar 22 2019 - 3:15am
Last seen: 2 weeks 3 days ago
0

Uiii.... complex structure with nested frames. - not nice but sometimes neccessary.

I see that you use "Immediate" for the splitting type... so have you already tried to change this to "split" instead?

Also you should check the "RemoveLineWhenBlank" at the frame element that has a PrintWhenExpression, so that the space could be reused if the whole area is surpressed.

Otherwise I would also advice using several detail bands instead such a "All-In-One" logic... if the frames should not be kept together to one page, there shouldn't be a problem using multiple detail bands.

Also the order in the Report inspector should be corresponding to the logical y-order of printing the frames... so you should order it from top to down, so that the engine can evaluate the printWhenExpressions in the correct order. Mixing up the order can cause strange effects - this is what I've experienced in older (up to 5.5.1) Versions of JasperReports.

hth + regards

C-Box

C-Box's picture
1741
Joined: Jul 19 2006 - 5:58pm
Last seen: 2 days 14 hours ago
0

I resolved the problem using more details band. Thanks for help.

I have another questions.

Can I have a fixed vertical band?

In this example:

 

 

I want fixed yellow "section" and move the "central section" (condition based).

That is have a left fixed column in first page.

Alessio.

 

 

 

 

alessio.oglialoro's picture
Joined: Mar 22 2019 - 3:15am
Last seen: 2 weeks 3 days ago
0

if you don't set "RemoveLineWhenBlank" to the frame in your first section, then the Frame should actually stay as tall, as defined in layout, isn't it!??!

Otherwise you could also set an "invisible" (white) line/rectangle somewhere to the left/right border, just to keep the defined band in it's defined height for sure.

hth + regards

C-Box

C-Box's picture
1741
Joined: Jul 19 2006 - 5:58pm
Last seen: 2 days 14 hours ago
0

Maybe I explained wrong.

I need move up the central content in "green" and keep fixed the yellow content when the element black are empty.

Thanks.

Alessio.

alessio.oglialoro's picture
Joined: Mar 22 2019 - 3:15am
Last seen: 2 weeks 3 days ago
Feedback