2006 JR Open Discussion Posted August 22, 2006 Share Posted August 22, 2006 By: slowfinger - slowfinger simultaneous move of text label and textfield 2006-03-28 21:35Hi, I have following case: The detail contains a lot of text elements and subreports. The text label and field elements are aligned horizontal. All of the text fields contents could be bigger as the expected width thats why I adjust the text fields property isStretchWithOverflow=true. I've adjust all text fields property positionType="Float". And now it could happen, that the correspondend text label stay upper to it's content. What can I do that both the label and it's text field move downwards if the previous text field was stretched ? Any suggestions. Thanks in forward. Rico By: Teodor Danciu - teodord RE: simultaneous move of text label and textf 2006-04-10 07:57 Hi, Use an invisible line to separate the label and text pairs. The line should also have postitionType="Float", but will push both the text and the label at the same time. Otherwise, put the label/text pairs into their own separate bands using dummy groups. I hope this helps. Teodor By: C-Box - c-box RE: simultaneous move of text label and textf 2006-04-10 08:10Could not also a frame element help in this case!?!?!? hth C-Box By: Teodor Danciu - teodord RE: simultaneous move of text label and textf 2006-04-10 08:16 Yes, frames should work. Good catch! Thanks, Teodor By: slowfinger - slowfinger RE: simultaneous move of text label and textf 2006-04-10 23:04Thanks, suggestion with line didn't work for me but with frame works well. Rico By: C-Box - c-box RE: simultaneous move of text label and textf 2006-04-11 00:33The trick with the invisible line must work also (as I did so in almost all of my reports before the frame-element came into JasperReport) ... you must set it to float and it must above BOTH elements (label and field) to cause the moving (also set both elements to "float") but the frame is much better (cleaner) for new version of reports. C-Box 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