Jump to content
JasperReports Library 7.0 is now available ×

HELP: How to print line when detail overflows


Recommended Posts

By: J@Y - zhaidarbek

HELP: How to print line when detail overflows

2006-02-17 02:32

Dear developers, please help me. Is it possible to get line rendered only when detail band, which is within a group, overflows.

My problem is in rendering topBorder of textfield when detail overflows, because there isn't any, so i want there a line to get rendered. I have implemented the following type of covering textfield with line in the detail band _________|____| and so on, and its top border is just a bottom part of group header which i don't want to be rendered when detail overflows.

following is the code snippet:

...

.....

<groupHeader>

<band height="74" isSplitAllowed="true">

<textField evaluationTime="Group" evaluationGroup="zona" isBlankWhenNull="true">

<reportElement x="50" y="0" width="732" height="12" isRemoveLineWhenBlank="true" style="Arial_Normal">

</reportElement>

<textElement textAlignment="Left" verticalAlignment="Middle"/>

<textFieldExpression class="java.lang.String"><![CDATA["Зона Ð½Ð°Ð±Ð»ÑŽÐ´ÐµÐ½Ð¸Ñ "+$F{ZONA}]]></textFieldExpression>

</textField>

<staticText>

<reportElement x="0" y="24" width="50" height="50"/>

<box border="1Point"/>

<textElement textAlignment="Center" verticalAlignment="Top"/>

<text>Шифр примеÑи</text>

</staticText>

<staticText>

<reportElement x="50" y="24" width="50" height="50"/>

<box topBorder="1Point" rightBorder="1Point" bottomBorder="1Point"/>

<textElement textAlignment="Center" verticalAlignment="Top"/>

<text>ПоÑÑ‚</text>

</staticText>

.....

........

<detail>

<band height="14" isSplitAllowed="false">

<textField isStretchWithOverflow="true" isBlankWhenNull="true">

<reportElement x="0" y="0" height="14" width="50" stretchType="RelativeToBandHeight" style="Arial_Title"/>

<box leftBorder="1Point" rightBorder="1Point" bottomBorder="1Point" />

<textElement textAlignment="Right" verticalAlignment="Middle"/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIFR}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="true" isBlankWhenNull="true">

<reportElement x="50" y="0" height="14" width="50" stretchType="RelativeToBandHeight" style="Arial_Title"/>

<box rightBorder="1Point" bottomBorder="1Point"/>

<textElement textAlignment="Right" verticalAlignment="Middle"/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{POST}]]></textFieldExpression>

</textField>

...

Link to comment
Share on other sites

  • Replies 0
  • 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...