0

I have 4 frames created in a group header. All the four frames have 2 fields one label and the second value from query. Value filed in all the four frames is set to 'stretch when overflow'=true. when I run a report when frame 1-value field has huge text it is stretching but the other frames are not moving their position. Frame 1 is overlapping the frame 2. Frame 2 ,3 and 4 are not changing their position. This is a big report with almost 10 frames.

When frame1- field value is strecheched how to move position of other frames. I tried to set the position to float but it didnot help.

enter image description here

Sample:

<frame>
    <reportElement style="FrameBorder" stretchType="RelativeToBandHeight" x="0" y="340" width="1040" height="100">
        <property name="com.jaspersoft.studio.unit.x" value="pixel"/>
        <property name="com.jaspersoft.studio.unit.height" value="pixel"/>
        <property name="com.jaspersoft.studio.unit.width" value="pixel"/>
    </reportElement>
    <textField>
        <reportElement key="" style="GroupHeader" x="0" y="0" width="1040" height="20" isRemoveLineWhenBlank="true">
            <property name="com.jaspersoft.studio.unit.width" value="pixel"/>
        </reportElement>
        <textFieldExpression><![CDATA[$R{SRUpdateKey}]]></textFieldExpression>
    </textField>
    <textField isStretchWithOverflow="true">
        <reportElement style="Detail" positionType="Float" stretchType="RelativeToTallestObject" x="4" y="26" width="1035" height="64">
            <property name="com.jaspersoft.studio.unit.width" value="pixel"/>
        </reportElement>
        <textElement verticalAlignment="Top"/>
        <textFieldExpression><![CDATA[$F{SR_REPORT_UPDATE}]]></textFieldExpression>
    </textField>
</frame>

Alex K
  • 22,315
  • 19
  • 108
  • 236

0 Answers0