akosolapov83 Posted April 8, 2013 Share Posted April 8, 2013 Hi.A have textField and subreport placed at one detail band next to each other. Code:<band height="14" splitType="Stretch"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="cell" stretchType="RelativeToBandHeight" x="149" y="0" width="25" height="14" isPrintWhenDetailOverflows="true"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial" size="6" isBold="false"/> </textElement> <textFieldExpression><![CDATA[$F{RZPR}]]></textFieldExpression> </textField> <subreport> <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="802" height="14"/> <dataSourceExpression><![CDATA[$F{CSR_SUB}]]></dataSourceExpression> <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "cashflowplan/sub_all.jasper"]]></subreportExpression> </subreport></band>Sometimes this leads to shown in the pictureTextField takes all the space available on the first page. But the textfields from subreport's detail band move to the next page, leaving empty space at the end of the first page.How can this problem be solved? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now