By: Raj - rajs1
page header
2002-11-19 10:40
I have the following page header:
<pageHeader>
<band height="150">
<elementGroup>
<image>
<reportElement x="0" y="0" width="81" height="81"/>
<imageExpression class="java.io.InputStream">$P{LogoImg}</imageExpression>
</image>
</elementGroup>
<elementGroup>
<image>
<reportElement x="429" y="0" width="291" height="81"/>
<imageExpression class="java.io.InputStream">$P{TxtImg}</imageExpression>
</image>
</elementGroup>
<elementGroup>
<rectangle>
<reportElement x="260" y="120" width="200" height="20" backcolor="#F1F4FA"/>
<graphicElement stretchType="NoStretch" pen="None"/>
</rectangle>
</elementGroup>
<elementGroup>
<textField>
<reportElement x="260" y="120" width="200" height="20"/>
<textElement textAlignment="Center">
<font fontName="Arial_Normal" size="13"/>
</textElement>
<textFieldExpression class="java.lang.String">$P{report_title}</textFieldExpression>
</textField>
</elementGroup>
</band>
</pageHeader>
I want this to appear on in the first page (of a 16 page report).
From the second page onwards, I want the column header to start 150 pix's above (which is the band height of the page header).
At the moment the images do not appear from page 2 onwards (pure chance I guess) but the title does. Also the column header starts 150 pixels below the top margin leaving a lot of blank space.
Obviously the contents of the page header must be put somewhere elese. Where?
Your help is much appreciated.
PS:
The column header is:
<columnHeader>
<band height="50">
<elementGroup>
<rectangle>
<reportElement x="0" y="0" width="75" height="16" backcolor="#F1F4FA"/>
<graphicElement stretchType="NoStretch" pen="Thin"/>
</rectangle>
</elementGroup>
<staticText>
<reportElement x="0" y="0" width="75" height="16"/>
<textElement textAlignment="Center">
<font fontName="Group_Caption"/>
</textElement>
<text>Account:</text>
</staticText>
....
... etc etc
The page setting is:
<jasperReport name="AccStatement"
columnCount="1"
printOrder="Vertical"
pageHeight="600"
pageWidth="800"
columnWidth="720"
leftMargin="40"
rightMargin="40"
topMargin="40"
bottomMargin="40"
isTitleNewPage="false"
isSummaryNewPage="false">
Cheers
-raj
By: Teodor Danciu - teodord
RE: page header
2002-11-19 12:35
In the <title> band, don't you think?
I hope thi helps.
Teodor
By: Raj - rajs1
RE: page header
2002-11-19 12:47
Merci!
My brain is obviously beginning to curdle so I'm off for a hot bath!
Cheers
-raj
By: Raj - rajs1
RE: page header
2002-11-19 12:51
Merci!
My brain is obviously beginning to curdle so I'm off for a hot bath!
Cheers
-raj
page header
2002-11-19 10:40
I have the following page header:
<pageHeader>
<band height="150">
<elementGroup>
<image>
<reportElement x="0" y="0" width="81" height="81"/>
<imageExpression class="java.io.InputStream">$P{LogoImg}</imageExpression>
</image>
</elementGroup>
<elementGroup>
<image>
<reportElement x="429" y="0" width="291" height="81"/>
<imageExpression class="java.io.InputStream">$P{TxtImg}</imageExpression>
</image>
</elementGroup>
<elementGroup>
<rectangle>
<reportElement x="260" y="120" width="200" height="20" backcolor="#F1F4FA"/>
<graphicElement stretchType="NoStretch" pen="None"/>
</rectangle>
</elementGroup>
<elementGroup>
<textField>
<reportElement x="260" y="120" width="200" height="20"/>
<textElement textAlignment="Center">
<font fontName="Arial_Normal" size="13"/>
</textElement>
<textFieldExpression class="java.lang.String">$P{report_title}</textFieldExpression>
</textField>
</elementGroup>
</band>
</pageHeader>
I want this to appear on in the first page (of a 16 page report).
From the second page onwards, I want the column header to start 150 pix's above (which is the band height of the page header).
At the moment the images do not appear from page 2 onwards (pure chance I guess) but the title does. Also the column header starts 150 pixels below the top margin leaving a lot of blank space.
Obviously the contents of the page header must be put somewhere elese. Where?
Your help is much appreciated.
PS:
The column header is:
<columnHeader>
<band height="50">
<elementGroup>
<rectangle>
<reportElement x="0" y="0" width="75" height="16" backcolor="#F1F4FA"/>
<graphicElement stretchType="NoStretch" pen="Thin"/>
</rectangle>
</elementGroup>
<staticText>
<reportElement x="0" y="0" width="75" height="16"/>
<textElement textAlignment="Center">
<font fontName="Group_Caption"/>
</textElement>
<text>Account:</text>
</staticText>
....
... etc etc
The page setting is:
<jasperReport name="AccStatement"
columnCount="1"
printOrder="Vertical"
pageHeight="600"
pageWidth="800"
columnWidth="720"
leftMargin="40"
rightMargin="40"
topMargin="40"
bottomMargin="40"
isTitleNewPage="false"
isSummaryNewPage="false">
Cheers
-raj
By: Teodor Danciu - teodord
RE: page header
2002-11-19 12:35
In the <title> band, don't you think?
I hope thi helps.
Teodor
By: Raj - rajs1
RE: page header
2002-11-19 12:47
Merci!
My brain is obviously beginning to curdle so I'm off for a hot bath!
Cheers
-raj
By: Raj - rajs1
RE: page header
2002-11-19 12:51
Merci!
My brain is obviously beginning to curdle so I'm off for a hot bath!
Cheers
-raj
0 Answers:
No answers yet