Jasper Stretch and Float

Questions and answers on developing, deploying and using plugins and JavaBeans

Jasper Stretch and Float

Postby wes.s.grayson » Wed Oct 05, 2016 5:21 pm

I have created a report within JasperStudio 6.3.0 that lays out data in a table format like this:
_______________________________________________
Static Text 1 (label) | Text Field 1 (user provided)
_______________________________________________
Static Text 2 (label) | Text Field 2 (user provided)
_______________________________________________

If the user types alot of information into Text Field 1, I need the heights of both the Static Text 1 and Text Field 1 to adjust properly. Easy to do for Text field 1, just set the "Stretch with Overflow". The problem is how to make Static Text 1 also grow along with Text Field 1. In jasper, I grouped these elements using <elementGroup> and set the Stretch Type to ElementGroupHeight. This works perfect in the Jasper Preview. However, when I launch the report from Servoy (8.0.3) I get:

No enum constant net.sf.jasperreports.engine.type.StretchTypeEnum.ELEMENT_GROUP_HEIGHT
Wrapped java.lang.Exception: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error loading object from InputStream.


Any clues as to what I need to do to make this work in Servoy?
wes.s.grayson
 
Posts: 46
Joined: Mon Jan 23, 2012 5:39 pm

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 10 guests