alessio.oglialoro Posted August 22, 2019 Share Posted August 22, 2019 When detail section increase can I move the content automatically in other page?Alessio.Thanks. Link to comment Share on other sites More sharing options...
C-Box Posted August 23, 2019 Share Posted August 23, 2019 ???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 + regardsC-Box Link to comment Share on other sites More sharing options...
alessio.oglialoro Posted August 23, 2019 Author Share Posted August 23, 2019 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. Link to comment Share on other sites More sharing options...
C-Box Posted August 26, 2019 Share Posted August 26, 2019 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 + regardsC-Box Link to comment Share on other sites More sharing options...
alessio.oglialoro Posted August 27, 2019 Author Share Posted August 27, 2019 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. Link to comment Share on other sites More sharing options...
C-Box Posted August 27, 2019 Share Posted August 27, 2019 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 + regardsC-Box Link to comment Share on other sites More sharing options...
alessio.oglialoro Posted August 27, 2019 Author Share Posted August 27, 2019 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. 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