Hi.
I have two reports: main and subreport.
In main detail band i have textfield and subreport:
<band height="15" splitType="Stretch"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="cell" stretchType="RelativeToBandHeight" x="20" y="0" width="200" height="15" isPrintWhenDetailOverflows="true"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="DejaVu Sans" size="7" isBold="true"/> <paragraph leftIndent="1" rightIndent="1" spacingBefore="1" spacingAfter="1"/> </textElement> <textFieldExpression><![CDATA[$F{org_name}]]></textFieldExpression> </textField> <subreport> <reportElement stretchType="RelativeToTallestObject" x="220" y="0" width="582" height="15" isPrintWhenDetailOverflows="true"> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <subreportParameter name="SUBREPORT_DIR"> <subreportParameterExpression> <![CDATA[$P{SUBREPORT_DIR}]]> </subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[$F{EDU_LEVEL_DATASOURCE}]]></dataSourceExpression> <subreportExpression> <![CDATA[$P{SUBREPORT_DIR} + "/reports/scholarship_fund_analysis/sub_education_level.jasper"]]> </subreportExpression> </subreport> </band>
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?
0 Answers:
No answers yet