Jump to content
Changes to the Jaspersoft community edition download ×

groupheader can't repeat properly everytime


Recommended Posts

By: tissues tempro - tissues

groupheader can't repeat properly everytime

2002-11-01 23:10

The groupheader cannot repeat each time for each new page.

 

I already set isReprintHeaderOnEachPage="true".

 

The problem is that

============= page 1

groupheader

detail

============= page 2

groupfooder

============= page 3

groupheader

detail

============= page 4

groupheader

groupfooter

============= end

 

 

The problem is happened at page2 where groupheader didnt show. While it can show properly at page 4. it it because wrong setting?

 

Any where i can sumbit the xml or pdf file for discuss?

 

THANK YOU VERY MUCH!

REGRADS

NEW USER!

 

 

By: tissues tempro - tissues

RE: groupheader can't repeat properly everytime

2002-11-01 23:23

Here is the XML file

===================================

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

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

<jasperReport

name="PurchaseOrder"

columnCount="1"

pageWidth="612"

pageHeight="792"

columnWidth="540"

columnSpacing="0"

leftMargin="36"

rightMargin="36"

topMargin="36"

bottomMargin="36">

<parameter name="cqtype" class="java.lang.String" />

<parameter name="cqref" class="java.lang.String" />

<parameter name="version" class="java.lang.Integer" />

<parameter name="override" class="java.lang.Double" />

<parameter name="summary" class="java.lang.String" />

<queryString><![CDATA[select *,

getNetPrice(pricepur,'','',0,producer,2,true,$P{override}) as purprice,

getNetPrice(pricepurlc,'','',0,producer,2,true,$P{override}) as purpricelc,

getRound(qtyship*getNetPrice(pricepur,'','',0,producer,2,true,$P{override}),2,true) as purtotal from purchaseorder

where cqtype=$P{cqtype} and cqref=$P{cqref} and version=$P{version}

]]></queryString>

<!--

select * from purchaseorder where cqtype=$P{cqtype} and cqref=$P{cqref} and version=$P{version}]]></queryString>

-->

<field name="partnername" class="java.lang.String"/>

<field name="partner" class="java.lang.String"/>

<field name="address1" class="java.lang.String"/>

<field name="address2" class="java.lang.String"/>

<field name="address3" class="java.lang.String"/>

<field name="city" class="java.lang.String"/>

<field name="telephone" class="java.lang.String"/>

<field name="fax" class="java.lang.String"/>

<field name="namechi" class="java.lang.String"/>

<field name="nameeng" class="java.lang.String"/>

<field name="addr1chi" class="java.lang.String"/>

<field name="addr2chi" class="java.lang.String"/>

<field name="addr3chi" class="java.lang.String"/>

<field name="addr1eng" class="java.lang.String"/>

<field name="addr2eng" class="java.lang.String"/>

<field name="addr3eng" class="java.lang.String"/>

<field name="district" class="java.lang.String"/>

<field name="country" class="java.lang.String"/>

<field name="curr" class="java.lang.String"/>

<field name="discount" class="java.lang.Integer"/>

<field name="payterm" class="java.lang.String"/>

<field name="remarks" class="java.lang.String"/>

<field name="datedoc" class="java.lang.String"/>

<field name="cert" class="java.lang.String"/>

<field name="reference" class="java.lang.String"/>

<field name="lineno" class="java.lang.Integer"/>

<field name="product" class="java.lang.String"/>

<field name="datedel" class="java.lang.String"/>

<field name="dateship" class="java.lang.String"/>

<field name="qtyship" class="java.lang.Long"/>

<field name="productdesc" class="java.lang.String"/>

<field name="ourref" class="java.lang.String"/>

<field name="custref" class="java.lang.String"/>

<field name="pricelc" class="java.lang.Double"/>

<field name="amount" class="java.lang.Double"/>

<field name="purprice" class="java.lang.Double"/>

<field name="purpricelc" class="java.lang.Double"/>

<field name="purtotal" class="java.lang.Double"/>

<field name="prtitem1" class="java.lang.String"/>

<field name="prtitem1line" class="java.lang.Integer"/>

<field name="prtctn1" class="java.lang.Boolean"/>

<field name="prtctn1line" class="java.lang.Integer"/>

<field name="prtunit1" class="java.lang.Boolean"/>

<field name="prtunit1line" class="java.lang.Integer"/>

<field name="prtitem2" class="java.lang.String"/>

<field name="prtitem2line" class="java.lang.Integer"/>

<field name="prtctn2" class="java.lang.Boolean"/>

<field name="prtctn2line" class="java.lang.Integer"/>

<field name="prtunit2" class="java.lang.Boolean"/>

<field name="prtunit2line" class="java.lang.Integer"/>

<field name="prtitem3" class="java.lang.String"/>

<field name="prtitem3line" class="java.lang.Integer"/>

<field name="prtctn3" class="java.lang.Boolean"/>

<field name="prtctn3line" class="java.lang.Integer"/>

<field name="prtunit3" class="java.lang.Boolean"/>

<field name="prtunit3line" class="java.lang.Integer"/>

<field name="po" class="java.lang.String"/>

<field name="cqtype" class="java.lang.String"/>

<field name="cqref" class="java.lang.String"/>

<field name="version" class="java.lang.Integer"/>

<field name="shipterm" class="java.lang.String"/>

<field name="packing" class="java.lang.String"/>

<field name="producercode" class="java.lang.String"/>

<field name="unitbox" class="java.lang.Integer"/>

<field name="unitcarton" class="java.lang.Integer"/>

<field name="uom" class="java.lang.String"/>

<field name="cff" class="java.lang.Double"/>

<field name="decspace" class="java.lang.Integer"/>

<field name="companyname" class="java.lang.String"/>

<field name="companyaddress1" class="java.lang.String"/>

<field name="companyaddress2" class="java.lang.String"/>

<field name="companyaddress3" class="java.lang.String"/>

<field name="companytelephone" class="java.lang.String"/>

<field name="companyfax" class="java.lang.String"/>

<field name="companyemail" class="java.lang.String"/>

 

<variable name="sumpurtotal" class="java.lang.Double" resetType="Group" resetGroup="Group" calculation="Sum">

<variableExpression>$F{purtotal}</variableExpression>

</variable>

<group name="Group" isStartNewColumn="true" isStartNewPage="true" isResetPageNumber="false" isReprintHeaderOnEachPage="true" minHeightToStartNewPage="0" >

<groupExpression>$F{partner}</groupExpression>

<groupHeader>

<band height="230">

 

<staticText>

<reportElement x="0" y="10" width="120" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>TEL : </text>

</staticText>

<textField>

<reportElement x="30" y="10" width="120" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{companytelephone}</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="0" y="22" width="120" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>FAX : </text>

</staticText>

<textField>

<reportElement x="30" y="22" width="120" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{companyfax}</textFieldExpression>

</textField>

 

 

<staticText>

<reportElement x="390" y="10" width="50" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>E-MAIL : </text>

</staticText>

<textField>

<reportElement x="430" y="10" width="110" height="20" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{companyemail}</textFieldExpression>

</textField>

 

<textField>

<reportElement x="200" y="10" width="140" height="11" />

<textElement textAlignment="Center">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{companyaddress1}</textFieldExpression>

</textField>

<textField>

<reportElement x="200" y="22" width="140" height="11" />

<textElement textAlignment="Center">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{companyaddress2}</textFieldExpression>

</textField>

<textField>

<reportElement x="200" y="34" width="140" height="11" />

<textElement textAlignment="Center">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{companyaddress3}</textFieldExpression>

</textField>

 

 

<staticText>

<reportElement x="100" y="60" width="340" height="20"/>

<textElement textAlignment="Center" lineSpacing="Single">

<font fontName="sansserif" size="12" isBold="true" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>PURCHASE ORDER</text>

</staticText>

 

 

<textField>

<reportElement x="100" y="90" width="340" height="11" />

<textElement textAlignment="Center" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">"("+$F{partner}+")"</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="0" y="90" width="250" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>TO </text>

</staticText>

<textField>

<reportElement x="30" y="90" width="220" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{partnername}</textFieldExpression>

</textField>

<textField>

<reportElement x="30" y="102" width="220" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{address1}</textFieldExpression>

</textField>

<textField>

<reportElement x="30" y="114" width="220" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{address2}</textFieldExpression>

</textField>

<textField>

<reportElement x="30" y="126" width="220" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{address3}</textFieldExpression>

</textField>

<textField>

<reportElement x="30" y="138" width="220" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{city}</textFieldExpression>

</textField>

<textField>

<reportElement x="30" y="150" width="220" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{country}</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="0" y="162" width="220" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>TEL </text>

</staticText>

<textField>

<reportElement x="30" y="162" width="220" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{telephone}</textFieldExpression>

</textField>

<staticText>

<reportElement x="0" y="174" width="220" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>FAX </text>

</staticText>

<textField>

<reportElement x="30" y="174" width="220" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{fax}</textFieldExpression>

</textField>

 

 

 

 

 

 

 

 

<staticText>

<reportElement x="320" y="90" width="220" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>NO. </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="370" y="90" width="170" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{cqtype}.trim() +"/"+ $F{cqref}.trim() +"/"+ $F{version} </textFieldExpression>

</textField>

 

<staticText>

<reportElement x="320" y="102" width="220" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>DATE </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="370" y="102" width="170" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">new common.CDate($F{datedoc}).toString()</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="320" y="114" width="220" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>CERT. </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="370" y="114" width="170" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{cert}</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="320" y="126" width="220" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>CURRENCY </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="370" y="126" width="170" height="11" />

<textElement>

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{curr}</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="320" y="138" width="220" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>PAGE </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="370" y="138" width="170" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">String.valueOf($V{PAGE_NUMBER})</textFieldExpression>

</textField>

 

 

<staticText>

<reportElement x="0" y="186" width="540" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>THE UNDERMENTIONED GOODS SUBJECT TO THE TERMS AND CONDITIONS AS STATED BELOW HEREO </text>

</staticText>

 

<line direction="TopDown">

<reportElement

mode="Opaque"

x="0"

y="200"

width="540"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

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

</line>

 

<staticText>

<reportElement x="0" y="205" width="95" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>OUR CUST REF. </text>

</staticText>

<staticText>

<reportElement x="0" y="215" width="95" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>YOUR NUMBER </text>

</staticText>

 

<staticText>

<reportElement x="100" y="205" width="45" height="20"/>

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>QUANTITY </text>

</staticText>

 

<staticText>

<reportElement x="150" y="205" width="45" height="20"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>UNIT </text>

</staticText>

 

<staticText>

<reportElement x="200" y="205" width="65" height="20"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>DELIVERY </text>

</staticText>

 

<staticText>

<reportElement x="270" y="205" width="145" height="20"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>DESCRIPTION </text>

</staticText>

<staticText>

<reportElement x="270" y="215" width="145" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>PACKING </text>

</staticText>

 

<staticText>

<reportElement x="420" y="205" width="55" height="20"/>

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>UNIT PRICE </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="400" y="215" width="140" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{shipterm}</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="480" y="205" width="55" height="20"/>

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>AMOUNT </text>

</staticText>

 

<line direction="TopDown">

<reportElement

mode="Opaque"

x="0"

y="227"

width="540"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

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

</line>

</band>

 

</groupHeader>

 

 

 

<groupFooter>

<band height="400">

<staticText>

<reportElement x="410" y="20" width="45" height="11"/>

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>TOTAL: </text>

</staticText>

<textField evaluationTime="Now">

<reportElement positionType="Float" mode="Transparent" x="460" y="20" width="75" height="11" />

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">new DecimalFormat("$#,###.00").format($V{sumpurtotal})</textFieldExpression>

</textField>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="460"

y="30"

width="75"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

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

</line>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="460"

y="32"

width="75"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

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

</line>

 

<staticText>

<reportElement x="0" y="40" width="450" height="20"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>REMARKS: </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="50" y="40" width="485" height="200" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{remarks}</textFieldExpression>

</textField>

 

 

<staticText>

<reportElement x="0" y="260" width="200" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>CONFIRMED AND ACCEPT BY </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="0" y="272" width="200" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{partnername}</textFieldExpression>

</textField>

 

<line direction="TopDown">

<reportElement

mode="Opaque"

x="0"

y="348"

width="200"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

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

</line>

 

<staticText>

<reportElement x="0" y="349" width="200" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica-Oblique" pdfEncoding="Cp1252" isItalic="true" isPdfEmbedded="false" />

</textElement>

<text>Authorized Signature & Co., Cho</text>

</staticText>

 

 

 

<staticText>

<reportElement x="270" y="260" width="200" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>For and on behalf of </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="270" y="272" width="100" height="13" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{companyname}</textFieldExpression>

</textField>

 

<line direction="TopDown">

<reportElement

mode="Opaque"

x="270"

y="348"

width="200"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

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

</line>

 

<staticText>

<reportElement x="270" y="349" width="200" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica-Oblique" pdfEncoding="Cp1252" isItalic="true" isPdfEmbedded="false" />

</textElement>

<text>Authorized Signature </text>

</staticText>

 

 

</band>

</groupFooter>

 

 

</group>

<title>

<band height="0" />

</title>

<pageHeader>

<band height="0" />

</pageHeader>

<columnHeader>

<band height="0" />

</columnHeader>

<detail>

<band height="52">

<textField>

<reportElement positionType="Float" mode="Transparent" x="0" y="0" width="95" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{custref}</textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" mode="Transparent" x="0" y="10" width="95" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{product}</textFieldExpression>

</textField>

 

<textField>

<reportElement positionType="Float" mode="Transparent" x="100" y="0" width="45" height="11" />

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.Long">$F{qtyship}</textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" mode="Transparent" x="150" y="0" width="45" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{uom}</textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" mode="Transparent" x="200" y="0" width="65" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">new common.CDate($F{dateship}).getDelDate()</textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" mode="Transparent" x="270" y="0" width="145" height="20" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{productdesc}</textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" mode="Transparent" x="420" y="0" width="55" height="11" />

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">new common.CDecimal($F{purprice}).toCurrency($F{decspace})</textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" mode="Transparent" x="480" y="0" width="55" height="11" />

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">new DecimalFormat("$#,###.00").format($F{purtotal})</textFieldExpression>

</textField>

 

<textField>

<reportElement positionType="Float" mode="Transparent" x="270" y="20" width="145" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{ourref}</textFieldExpression>

</textField>

 

<textField>

<reportElement positionType="Float" mode="Transparent" x="270" y="30" width="145" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{packing}</textFieldExpression>

</textField>

 

 

<staticText>

<reportElement x="140" y="40" width="55" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>INNER BOX: </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="195" y="40" width="45" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.Integer">$F{unitbox}</textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" mode="Transparent" x="225" y="40" width="45" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{uom}</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="290" y="40" width="55" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>EXPORT CTN: </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="350" y="40" width="45" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.Integer">$F{unitcarton}</textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" mode="Transparent" x="380" y="40" width="45" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.String">$F{uom}</textFieldExpression>

</textField>

 

<staticText>

<reportElement x="440" y="40" width="45" height="11"/>

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>MEAS: </text>

</staticText>

<textField>

<reportElement positionType="Float" mode="Transparent" x="470" y="40" width="45" height="11" />

<textElement textAlignment="Left" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<textFieldExpression class="java.lang.Double">$F{cff}</textFieldExpression>

</textField>

<staticText>

<reportElement x="510" y="40" width="25" height="11"/>

<textElement textAlignment="Right" lineSpacing="Single">

<font fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />

</textElement>

<text>CFT </text>

</staticText>

 

</band>

</detail>

<columnFooter>

<band height="0" />

</columnFooter>

<pageFooter>

<band height="0" />

</pageFooter>

<summary>

<band height="0" />

</summary>

</jasperReport>

 

 

 

 

By: Teodor Danciu - teodord

RE: groupheader can't repeat properly everytime

2002-11-03 12:13

 

Hi,

 

This bug is now fixed in the CVS repository

at sourceforge.

There are two files you need to get from there:

 

dori.jasper.engine.fill.JRFillGroup

dori.jasper.engine.fill.JRVerticalFiller

 

This will be part of the next release.

Until then, take these files from CVS.

 

Thank you,

Teodor

 

 

 

 

By: tissues tempro - tissues

RE: groupheader can't repeat properly everytime

2002-11-04 20:18

Done!

 

Many thanks :)

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