Subreport doesn't float

By: Tom Geyzen - tomgeyzen
Subreport doesn't float
2002-12-11 03:07

I'm having a problem with the positioning of a subreport : it always showes up at the specified y coordinate hence ignoring positionType="Float".
This is the xml :

<reportElement x="0" y="40" width="555" height="60" forecolor="#111111" positionType="Float"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font reportFont="Arial_Bold" size="14"/>
<text>Message Content</text>
<textField isStretchWithOverflow = "true">
<reportElement x="10" y="65" width="500" height="100" isRemoveLineWhenBlank="true"/>
<textElement textAlignment="Left" lineSpacing = "Single">
<font size="8" />
<textFieldExpression class="java.lang.String">$F{PAYLOAD}.replace('\r', '\0')</textFieldExpression>
<reportElement x="0" y="65" width="555" height="100" mode="Transparent" positionType="Float"/>
<graphicElement stretchType="RelativeToTallestObject"/>

<!--The subreport with the hit details-->
<subreport isUsingCache="false">
<reportElement x="0" y="150" width="555" height="1" backcolor="#FFFFDD" positionType="Float" isPrintWhenDetailOverflows="true"/>
<subreportParameter name="Id">
<subreportExpression class="java.lang.String">

Any ideas anyone ??



By: Teodor Danciu - teodord
RE: Subreport doesn't float
2002-12-11 08:38


Your subreport overlaps the above text field.
It is placed at y="150", but the text field goes
to the 65 + 100= 165

Your subreport should be at y="166" if you want
it to float after the text field.

I hope this helps.
2006 IR Open Dicussion's picture
Joined: Aug 10 2006 - 3:24am
Last seen: 16 years 9 months ago

0 Answers:

No answers yet