Java Reference
In-Depth Information
<reportElement width="300" y="0" x="252" height="24"
<box border="Thin"/>
<![CDATA[staticText element stretchType is
<reportElement width="250" y="25" x="0" height="24"
<box border="Thin"/>
<![CDATA[This text is here to stretch the band a bit
After compiling the above JRXML template, and filling the resulting Jasper template,
we should see a report like the following:
Once again we decided to display borders around every element, to make it clear
where an element's boundaries are. As we can see in the screenshot, the static text is
stretched to match the height of the tallest object. This is because we set the value of
the stretchType property of <reportElement> to be RelativeToTallestObject .
Notice the <elementGroup> element in the above JRXML template. The purpose of
this element is to group elements together so that we can better control the behavior
of report elements when one of them stretches. The RelativeToTallestObject
Search WWH ::

Custom Search