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

PageHeader rectangle RelativeToTallestObject


Recommended Posts

By: Wolfgang - javabreak

PageHeader rectangle RelativeToTallestObject

2003-08-19 06:01

Hi,

 

i have the following pageHeader defined

 

<pageHeader>

<band height="110">

<staticText>

<reportElement positionType="Float" x="0" y="1" width="420" height="16"/>

<textElement textAlignment="Left">

<font fontName="sansserif" size="12" isItalic="true" isBold="true" />

</textElement>

<text><![CDATA[bLABLABLA ]]></text>

</staticText>

 

<image scaleImage="RetainShape" isUsingCache="true">

<reportElement x="460" y="0" width="80" height="14" />

<imageExpression>$V{imageName}</imageExpression>

</image>

 

<line>

<reportElement x="0" y="13" width="420" height="0"/>

</line>

 

<rectangle>

<reportElement x="0" y="15" width="420" height="18" forecolor="#C0C0C0" backcolor="#C0C0C0"/>

<graphicElement stretchType="NoStretch"/>

</rectangle>

 

<staticText>

<reportElement positionType="Float" x="0" y="17" width="420" height="18"/>

<textElement textAlignment="Left">

<font fontName="sansserif" size="14" isItalic="true" isBold="true" />

</textElement>

<text><![CDATA[Listname]]></text>

</staticText>

 

<staticText>

<reportElement x="450" y="15" width="90" height="13"/>

<textElement textAlignment="Right">

<font fontName="sansserif" size="10" isBold="true" />

</textElement>

<text><![CDATA[blablabla]]></text>

</staticText>

 

<elementGroup>

<rectangle >

<reportElement x="0" y="38" width="540" height="70" forecolor="#C0C0C0" backcolor="#C0C0C0" />

<graphicElement stretchType="RelativeToTallestObject"/>

</rectangle>

<staticText>

<reportElement mode="Transparent" x="2" y="38" width="65" height="12"/> <!--66 -->

<textElement textAlignment="Left">

<font reportFont="Arial_Bold_9"/>

</textElement>

<text><![CDATA[Text1:]]></text>

</staticText>

 

<textField isStretchWithOverflow="true">

<reportElement mode="Transparent" x="70" y="38" width="180" height="35"/> <!-- 66 -->

<textElement>

<font reportFont="Arial_Normal_8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[""+$P{inhalt1}]]></textFieldExpression>

</textField>

 

<staticText>

<reportElement positionType="Float" mode="Transparent" x="255" y="38" width="60" height="12"/> <!-- 66 -->

<textElement textAlignment="Left">

<font reportFont="Arial_Bold_9"/>

</textElement>

<text><![CDATA[Text2:]]></text>

</staticText>

 

<textField>

<reportElement positionType="Float" mode="Transparent" x="330" y="38" width="180" height="35"/> <!-- 66 -->

<textElement>

<font reportFont="Arial_Normal_8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[""+$P{inhalt2}]]></textFieldExpression>

</textField>

</elementGroup>

</band>

</pageHeader>

 

My problem now is that the rectangle in the elementGroup is not visible, when "inhalt1" stretches higher than the band is defined. The content of textfield "inhalt1" is showed correct and the textfield stretches down correct.

 

Why is the rectangle not shown.

 

Thank you

 

Wolfgang

 

 

 

 

By: Teodor Danciu - teodord

RE: PageHeader rectangle RelativeToTallestObj

2003-08-19 07:50

 

Hi,

 

Are you talking about HTML or XLS format?

Or is the rectangle missing also in PDF or in

the JasperViewer?

 

If it is about HTML or XLS, then you should note that

those built-in "grid" exporters do not know how to

handle overlapping elements. They simply cannot put

two different element in the same grid cell.

This is how they work.

And since your rectangle overlaps with other

elements in the group, it does not appear in those formats.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Wolfgang - javabreak

RE: PageHeader rectangle RelativeToTallestObj

2003-08-19 09:49

Hi Teodor,

 

the rectangle is missing in PDF format.

 

Thank you

 

Wolfgang

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: PageHeader rectangle RelativeToTallestObj

2003-10-05 02:44

 

Hi,

 

What version of JasperReports are you using?

 

Thank you,

Teodor

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