jstoneburner Posted May 30, 2008 Share Posted May 30, 2008 I have a tabular report that contains a set of standard text fields and a set of optional text fields. The optional fields will only be displayed if the user selects them from a list. If any optional fields are selected, they need to be displayed under the standard fields (by increasing the detail band height and setting the Y attribute to the height of the standard text fields). Currently, the JRXML file contains the layout for only the standard text fields. Any optional fields are added to the JasperDesign object at run time. The problem I'm running into is that the text fields need to have their isStretchWithOverflow attribute set to true to fit in the occasional large text entry. However, when the standard fields do stretch, this causes the Y attribute to no longer be correct for the optional fields. Is there a way in the Java code to push these optional fields down if the standard field becomes stretched so that the optional fields aren't overlapping with the stretched standard fields? Link to comment Share on other sites More sharing options...
lucianc Posted May 30, 2008 Share Posted May 30, 2008 jstoneburner wrote:Is there a way in the Java code to push these optional fields down if the standard field becomes stretched so that the optional fields aren't overlapping with the stretched standard fields? Set positionType=Float for the optional text fields, and make sure they are placed under (on the Y axis) the stretching texts. HTH,Lucian Link to comment Share on other sites More sharing options...
jstoneburner Posted May 30, 2008 Author Share Posted May 30, 2008 Thank you very much! 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