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

How to auto-height column?


pavel.kavaliuk365

Recommended Posts

Hi, I have a question about realizing the auto-height feature to a column. I can't understand why it doesn't work.

<style name="common" fontName="Times New Roman" fontSize="12" isBlankWhenNull="true">    <paragraph lineSpacing="1_1_2"/></style>

<style name="halfPointBorder" style="common">    <box><pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/></box></style>

<style name="departmentName" style="halfPointBorder" vTextAlign="Bottom" hTextAlign="Left"/>

<detail>    <band height="18">        ...        <textField textAdjust="StretchHeight">            <reportElement x="160" y="0" width="80" height="18" isRemoveLineWhenBlank="true" style="departmentName"                           stretchType="RelativeToTallestObject">                <property name="net.sf.jasperreports.export.xls.row.outline.level.2" value="Body"/>                <printWhenExpression><![CDATA[$F{areaName} != null]]></printWhenExpression>            </reportElement>            <textElement>                <paragraph lineSpacing="Fixed" lineSpacingSize="24.0" spacingBefore="10" spacingAfter="12"/>            </textElement>            <textFieldExpression><![CDATA[$F{areaName}]]></textFieldExpression>        </textField>            ...    </band></detail>

It is for the column "Участок".

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...