Jump to content
Changes to the Jaspersoft community edition download ×

PageHeader and pageFooter are missing on last


Recommended Posts

By: uwei - uwei

PageHeader and pageFooter are missing on last

2006-05-03 06:07

Hi,

 

if there is an summary but no detail anymore on last page then last pageFooter and last pageHeader are missing.

 

In the following example

- could be filled with 5 records correctly (1 page)

- could be filled with 13 records correctly (2 pages)

- could not be filled with 9 records because pageFooter and last pageHeader on last page are missing

 

Could anyone help or verify as a bug?

 

Thanks,

Udo

 

 

<?xml version="1.0" encoding="UTF-8" ?>

<!-- Created with iReport - A designer for JasperReports -->

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport

name="Angebottest"

columnCount="1"

printOrder="Vertical"

orientation="Portrait"

pageWidth="595"

pageHeight="842"

columnWidth="535"

columnSpacing="0"

leftMargin="30"

rightMargin="30"

topMargin="20"

bottomMargin="20"

whenNoDataType="NoPages"

isTitleNewPage="false"

isSummaryNewPage="false">

<property name="ireport.scriptlethandling" value="0" />

<property name="ireport.encoding" value="UTF-8" />

<import value="java.util.*" />

<import value="net.sf.jasperreports.engine.*" />

<import value="net.sf.jasperreports.engine.data.*" />

 

 

<field name="Name" class="java.lang.String">

<fieldDescription><![CDATA[Name]]></fieldDescription>

</field>

 

<background>

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

</band>

</background>

<title>

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

</band>

</title>

<pageHeader>

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

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Opaque"

x="6"

y="7"

width="476"

height="25"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-9"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Times-Bold" size="20" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA["Header should be displayed on every page"]]></textFieldExpression>

</textField>

</band>

</pageHeader>

<columnHeader>

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

</band>

</columnHeader>

<detail>

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

<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

x="24"

y="2"

width="100"

height="18"

key="textField"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement>

<font/>

</textElement>

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

</textField>

</band>

</detail>

<columnFooter>

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

</band>

</columnFooter>

<pageFooter>

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

<elementGroup><!-- Start: 1 !-->

<line direction="TopDown">

<reportElement

mode="Opaque"

x="5"

y="108"

width="530"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

key="line-1"/>

<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" />

</line>

<staticText>

<reportElement

mode="Transparent"

x="5"

y="114"

width="131"

height="36"

forecolor="#000000"

backcolor="#FFFFFF"

key="staticText-1"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="7" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[PAGE FOOTER]]></text>

</staticText>

</elementGroup><!-- End 1 !-->

</band>

</pageFooter>

<summary>

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

<line direction="TopDown">

<reportElement

mode="Opaque"

x="5"

y="6"

width="530"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

key="line-3"/>

<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" />

</line>

<staticText>

<reportElement

x="82"

y="25"

width="178"

height="22"

key="staticText-8"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement>

<font/>

</textElement>

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

</staticText>

</band>

</summary>

</jasperReport>

 

 

 

 

 

 

 

By: Lucian Chirita - lucianc

RE: PageHeader and pageFooter are missing on last

2006-05-03 06:29

Hi

 

It's not a bug, it's the intended rendering functionality.

 

Read this FAQ:

http://jasperreports.sourceforge.net/faq.html#fake

 

HTH,

Lucian

 

 

 

 

By: uwei - uwei

RE: PageHeader and pageFooter are missing on

2006-05-04 01:24

Many thanks to Lucian, this helps.

 

MfG

 

Udo

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