2001 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: tissues tempro - tissues sometimes show incorrect page number 2002-11-19 19:24In case 1, the repeat groupheader will show page=1 while it should be page=2. on the other hand, in case 2, the repeat groupheader can show page=2 which is corrected. The two case running on same xml template. case 1 ============= page 1 groupheader detail ============= page 2 repeat groupheader detail groupfooter ============= end case 2 ============= page 1 groupheader detail ============= page 2 repeat groupheader group footer ============= end Is there any wrong setting on my template? Thanks a lot for your kindly help. With best regards, tissues By: tissues tempro - tissues RE: sometimes show incorrect page number 2002-11-19 19:29The following is my template. ===================================== <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="PackingList" columnCount="1" pageWidth="612" pageHeight="792" columnWidth="540" columnSpacing="0" leftMargin="36" rightMargin="36" topMargin="36" bottomMargin="36"> <reportFont name="font_normal" isDefault="true" fontName="sansserif" size="8" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" /> <reportFont name="font_bold" isDefault="false" fontName="sansserif" size="8" isBold="true" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" /> <reportFont name="font_italic" isDefault="false" fontName="sansserif" size="8" pdfFontName="Helvetica-Oblique" pdfEncoding="Cp1252" isItalic="true" isPdfEmbedded="false" /> <parameter name="ShipInvoice" class="java.lang.String" /> <queryString><![CDATA[select * from packinglist where shipinvoice=$P{ShipInvoice}]]></queryString> <field name="shipinvoice" class="java.lang.String" /> <field name="partnername" class="java.lang.String" /> <field name="datecrt" class="java.lang.String" /> <field name="address1" class="java.lang.String" /> <field name="qtyship" class="java.lang.Integer" /> <field name="getproductdimension" class="java.lang.String" /> <field name="shipinvprint" class="java.lang.String" /> <field name="cbm" class="java.lang.Double" /> <field name="cff" class="java.lang.Double" /> <field name="address2" class="java.lang.String" /> <field name="companyfax" class="java.lang.String" /> <field name="cqlineno" class="java.lang.Integer" /> <field name="invprint" class="java.lang.String" /> <field name="price" class="java.lang.Double" /> <field name="companyaddress2" class="java.lang.String" /> <field name="custref" class="java.lang.String" /> <field name="curr" class="java.lang.String" /> <field name="nocarton" class="java.lang.Integer" /> <field name="etadate" class="java.lang.String" /> <field name="userchg" class="java.lang.String" /> <field name="companyemail" class="java.lang.String" /> <field name="vessal" class="java.lang.String" /> <field name="weightgross" class="java.lang.Double" /> <field name="companyaddress1" class="java.lang.String" /> <field name="packprint" class="java.lang.String" /> <field name="uom" class="java.lang.String" /> <field name="faxno" class="java.lang.String" /> <field name="payterm" class="java.lang.String" /> <field name="deldate" class="java.lang.String" /> <field name="dest" class="java.lang.String" /> <field name="unitcarton" class="java.lang.Double" /> <field name="ourref" class="java.lang.String" /> <field name="getproductweightctnkg" class="java.lang.String" /> <field name="usercrt" class="java.lang.String" /> <field name="partner" class="java.lang.String" /> <field name="cqref" class="java.lang.String" /> <field name="companyname" class="java.lang.String" /> <field name="insurance" class="java.lang.String" /> <field name="cqver" class="java.lang.Integer" /> <field name="cqtype" class="java.lang.String" /> <field name="lineno" class="java.lang.Integer" /> <field name="city" class="java.lang.String" /> <field name="weightnet" class="java.lang.Double" /> <field name="companytelephone" class="java.lang.String" /> <field name="telno" class="java.lang.String" /> <field name="orderref" class="java.lang.String" /> <field name="discount" class="java.lang.Integer" /> <field name="shipterm" class="java.lang.String" /> <field name="departure" class="java.lang.String" /> <field name="status" class="java.lang.String" /> <field name="remark" class="java.lang.String" /> <field name="companyaddress3" class="java.lang.String" /> <field name="ttlcarton" class="java.lang.Integer" /> <field name="amount" class="java.lang.Double" /> <field name="datedep" class="java.lang.String" /> <field name="country" class="java.lang.String" /> <field name="productdesc" class="java.lang.String" /> <field name="packing" class="java.lang.String" /> <field name="datechg" class="java.lang.String" /> <field name="cert" class="java.lang.String" /> <field name="address3" class="java.lang.String" /> <field name="getproductnetweightctnkg" class="java.lang.String" /> <variable name="sumnocarton" class="java.lang.Integer" resetType="Group" resetGroup="Group" calculation="Sum"> <variableExpression>$F{nocarton}</variableExpression> </variable> <group name="Group" isStartNewColumn="true" isStartNewPage="true" isResetPageNumber="false" isReprintHeaderOnEachPage="true" minHeightToStartNewPage="0" > <groupExpression>$F{shipinvoice}</groupExpression> <groupHeader> <band height="210"> <staticText> <reportElement positionType="Float" mode="Transparent" x="0" y="10" width="120" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>TEL : </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="30" y="10" width="120" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{companytelephone}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="0" y="22" width="120" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>FAX : </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="30" y="22" width="120" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{companyfax}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="390" y="10" width="50" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>E-MAIL : </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="430" y="10" width="110" height="20" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{companyemail}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="150" y="10" width="240" height="11" /> <textElement textAlignment="Center"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{companyaddress1}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="150" y="22" width="240" height="11" /> <textElement textAlignment="Center"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{companyaddress2}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="150" y="34" width="240" height="11" /> <textElement textAlignment="Center"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{companyaddress3}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="150" y="60" width="240" height="20"/> <textElement textAlignment="Center" lineSpacing="Single"> <font reportFont="font_bold" size="12" /> </textElement> <text>PACKING LIST</text> </staticText> <staticText> <reportElement positionType="Float" mode="Transparent" x="0" y="90" width="250" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>TO </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="30" y="90" width="220" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{partnername}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="30" y="102" width="220" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{address1}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="30" y="114" width="220" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{address2}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="30" y="126" width="220" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{address3}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="30" y="138" width="220" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{city}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="30" y="150" width="220" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{country}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="320" y="90" width="220" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>INVOICE NO. </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="400" y="90" width="140" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{shipinvoice}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="320" y="102" width="220" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>SHIPPED PER </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="400" y="102" width="140" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{vessal}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="320" y="114" width="220" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>SAILED ON/ABT </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="400" y="114" width="140" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">new common.CDate($F{datedep}).toString()</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="320" y="126" width="220" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>FROM </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="400" y="126" width="140" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{departure}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="320" y="138" width="220" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>TO </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="400" y="138" width="140" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{dest}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="320" y="150" width="220" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>DATE </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="400" y="150" width="140" height="11" /> <textElement> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">new common.CDate($F{datecrt}).toString() </textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="320" y="162" width="250" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>PAGE </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="400" y="162" width="80" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String"> "Page " + String.valueOf($V{PAGE_NUMBER}) + " of" </textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement positionType="Float" mode="Transparent" x="440" y="162" width="75" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String"> " " + String.valueOf($V{PAGE_NUMBER}) </textFieldExpression> </textField> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="180" 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 positionType="Float" mode="Transparent" x="0" y="185" width="95" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>ITEM NO. </text> </staticText> <staticText> <reportElement positionType="Float" mode="Transparent" x="100" y="185" width="45" height="20"/> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>NO. OF CARTONS </text> </staticText> <staticText> <reportElement positionType="Float" mode="Transparent" x="150" y="185" width="65" height="20"/> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>QUANTITY </text> </staticText> <staticText> <reportElement positionType="Float" mode="Transparent" x="220" y="185" width="45" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>UNIT </text> </staticText> <staticText> <reportElement positionType="Float" mode="Transparent" x="270" y="185" width="145" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>DESCRIPTION </text> </staticText> <staticText> <reportElement positionType="Float" mode="Transparent" x="420" y="185" width="120" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>MEASUREMENT & WEIGHT </text> </staticText> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="205" 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="200"> <line direction="TopDown"> <reportElement mode="Opaque" x="100" y="0" width="45" height="0" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <textField evaluationTime="Now"> <reportElement positionType="Float" mode="Transparent" x="100" y="5" width="45" height="11" /> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Integer">$V{sumnocarton}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="98" y="17" width="47" height="11"/> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>===========</text> </staticText> <staticText> <reportElement positionType="Float" mode="Transparent" x="0" y="40" width="120" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>TOTAL NO. OF CARTON(S) </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="120" y="40" width="300" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">new common.Dec2Eng().AmountFull($F{ttlcarton})</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="0" y="56" width="120" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>TOTAL G.W. </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="70" y="56" width="45" height="11" /> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">new DecimalFormat("#,###").format($F{weightgross}.doubleValue())</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="120" y="56" width="120" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>KGS </text> </staticText> <!-- <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="350" y="56" width="100" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Double">$F{weightgross}</textFieldExpression> </textField>--> <staticText> <reportElement positionType="Float" mode="Transparent" x="0" y="68" width="120" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>TOTAL N.W. </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="70" y="68" width="45" height="11" /> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">new DecimalFormat("#,###").format($F{weightnet}.doubleValue())</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="120" y="68" width="120" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>KGS </text> </staticText> <!-- <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="350" y="68" width="100" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Double">$F{weightnet}</textFieldExpression> </textField>--> <staticText> <reportElement positionType="Float" mode="Transparent" x="0" y="80" width="120" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>TOTAL MEASUREMENT </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="120" y="80" width="45" height="11" /> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">new DecimalFormat("#,###.###").format($F{cbm}.doubleValue())</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="170" y="80" width="120" height="20"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>CBM </text> </staticText> <!-- <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="350" y="80" width="100" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Double">$F{cbm}</textFieldExpression> </textField>--> <staticText> <reportElement positionType="Float" mode="Transparent" x="270" y="100" width="200" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>For and on behalf of </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="270" y="112" width="200" height="13" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" size="10" /> </textElement> <textFieldExpression class="java.lang.String">$F{companyname}</textFieldExpression> </textField> <line direction="TopDown"> <reportElement mode="Opaque" x="270" y="188" 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 positionType="Float" mode="Transparent" x="270" y="189" width="200" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_italic" /> </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="50"> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="0" y="0" width="95" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{custref}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="100" y="0" width="45" height="11" /> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Integer">$F{nocarton}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="150" y="0" width="65" height="11" /> <textElement textAlignment="Right" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Integer">$F{qtyship}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="220" y="0" width="45" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{uom}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="270" y="0" width="145" height="20" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{productdesc}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="420" y="0" width="120" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{getproductdimension}</textFieldExpression> </textField> <!-- <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="270" y="20" width="145" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{packing}</textFieldExpression> </textField> --> <staticText> <reportElement positionType="Float" mode="Transparent" x="420" y="20" width="50" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>G.W. </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="470" y="20" width="45" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{getproductweightctnkg}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="490" y="20" width="45" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>KGS </text> </staticText> <!-- <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="0" y="32" width="15" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{cqtype}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="20" y="32" width="45" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{cqref}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="70" y="32" width="25" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Integer">$F{cqver}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="100" y="32" width="45" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Integer">$F{cqlineno}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="150" y="32" width="95" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{partner}</textFieldExpression> </textField> --> <staticText> <reportElement positionType="Float" mode="Transparent" x="270" y="32" width="75" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>QTY PER CARTON </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="345" y="32" width="35" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.Double">$F{unitcarton}</textFieldExpression> </textField> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="380" y="32" width="35" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{uom}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="420" y="32" width="50" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>N.W. </text> </staticText> <textField isBlankWhenNull="true" isStretchWithOverflow="true"> <reportElement positionType="Float" mode="Transparent" x="470" y="32" width="45" height="11" /> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <textFieldExpression class="java.lang.String">$F{getproductnetweightctnkg}</textFieldExpression> </textField> <staticText> <reportElement positionType="Float" mode="Transparent" x="490" y="32" width="45" height="11"/> <textElement textAlignment="Left" lineSpacing="Single"> <font reportFont="font_normal" /> </textElement> <text>KGS </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: sometimes show incorrect page number 2002-11-28 23:16 Hi, I suggest you test the version found in the CVS repository at sourceforge.net. It contains some bug fixes in the portion of the code that has to do with group headers reprinting. If you have already done so, let me know. I hope this helps. Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now