How to stretch subreport following parent


I have two reports: main and subreport.

In main detail band i have textfield and subreport:

<band height="15" splitType="Stretch">
    <property name="" value="pixel"/>
    <textField isStretchWithOverflow="true" isBlankWhenNull="true">
        <reportElement style="cell" stretchType="RelativeToBandHeight"
                       x="20" y="0" width="200" height="15"
        <textElement textAlignment="Center" verticalAlignment="Middle">
            <font fontName="DejaVu Sans" size="7" isBold="true"/>
            <paragraph leftIndent="1" rightIndent="1" spacingBefore="1"
        <reportElement stretchType="RelativeToTallestObject" x="220" y="0"
                       width="582" height="15" isPrintWhenDetailOverflows="true">
            <property name="" value="pixel"/>
        <subreportParameter name="SUBREPORT_DIR">
                     + "/reports/scholarship_fund_analysis/sub_education_level.jasper"]]>

And there is one textfield in subreport's detail band.

The purpose is to implement something like rowSpan for "org_name" textField in main report. it works fine when subreport has a lot of content.

The problem arises when org_name is too long, and subreport has few rows. The height of org_name textfield is greater than total height of subreport.

Result report looks like this:

Is it possible to fix this?

akosolapov83's picture
Joined: Apr 8 2013 - 5:22am
Last seen: 2 years 1 month ago

0 Answers:

No answers yet