Jump to content
We've recently updated our Privacy Statement, available here ×

How to limit textfield height?


akosolapov83

Recommended Posts

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 picture

textfield.png.b53615dd676b4a51a5dd9fb2a0aaa644.png

TextField 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...