Jump to content
We've recently updated our Privacy Statement, available here ×

isStretchWithOverflow and dynamic report generatio


jstoneburner

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...