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

bug or not possible : two different positions on two different group footers ? (and only one group)


michaelremy

Recommended Posts

hi !

 

i have a simple form whith detail and two group footer.

i wish my first group foot be under the detail (so position normal) and my second group footer be at the bottom of the page (without be a pge footer off course).

 

so, in ireport, when i change the position of my first group footer, it also changes the position to the second one!

like all the group footer should be in the same position property.

 

so, bug or not ?

 

Thnks for help.

 

Mike



Post Edited by michaelremy at 03/02/2011 16:36
Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

Probably footer positions should be properly set for both your groups, because group footers cannot overlap. Outer group footers are always represented outside the inner groups footers.
Try to set footerPosition="StackAtBottom" for the outer group (which is the first group declared in jrxml) and footerPosition="Normal" for the inner group (the second group declared in jrxml).

Hope this helps,
sanda



Post Edited by shertage at 02/24/2011 16:02
Link to comment
Share on other sites

hi,

 

i tried what you said in previous comment.

but once i change the value position of one of the group footer, the other group takes the same value.

i also tried in both way (inner then outter, and outter then inner group), even with different value and the result is the same. The value position are synchronised...

 

strange...

 

i will update, maybe upgrade to 4.x release. maybe the bug is solved.

 

i post my xml content bellow, maybe it can help.

bye

 

 

my xml report (ireport 3.7.1):


<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="factures" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20">
    <property name="ireport.scriptlethandling" value="0"/>
    <property name="ireport.encoding" value="UTF-8"/>
    <property name="ireport.zoom" value="1.5"/>
    <property name="ireport.x" value="93"/>
    <property name="ireport.y" value="230"/>
    <import value="java.util.*"/>
    <import value="net.sf.jasperreports.engine.*"/>
    <import value="net.sf.jasperreports.engine.data.*"/>
    <queryString>
        <![CDATA[sELECT account_invoice.id as invoice_id,
account_invoice.number as invoice_number,
period_start,  period_end,   date_invoice, date_due,
sale_shop.bandeau_facture as bandeau,
sale_shop.pied_facture as pied,
shop_partner.name as shop_name,
shop_partner_address.name as shop_address_name,
shop_partner_address.street as shop_street,
shop_partner_address.street2 as shop_street2,
shop_partner_address.zip as shop_zip,
shop_partner_address.city as shop_city,
customer_partner_address.partner_id as customer_id,
customer_partner_address.name as customer_address_name,
customer_partner_address.street as customer_address_street,
customer_partner_address.street2 as customer_address_street2,
customer_partner_address.zip as customer_address_zip,
customer_partner_address.city as customer_address_city,
account_invoice_line.name as line_name,
account_invoice_line.price_unit,
account_invoice_line.quantity,
account_invoice.name as invoice_name,
account_invoice.amount_solde,
account_invoice.reference,
account_invoice.amount_expected,
account_invoice.amount_tva,
(account_invoice.amount_expected+account_invoice.amount_solde-account_invoice.amount_tva) AS montant_total_ht,
(account_invoice.amount_expected+account_invoice.amount_solde) AS montant_total_ttc,
shop_partner_address.email AS shop_email,
shop_partner_address.phone AS shop_phone,
shop_partner_address.fax AS shop_fax,
shop_partner.website AS shop_www,
invoice_partner.ref AS client_code,
invoice_partner.name AS client_nom,
lieu_intervention.street as lieu_rue,
lieu_intervention.street2 as lieu_rue_suite,
lieu_intervention.zip as lieu_cp,
lieu_intervention.city as lieu_ville,
account_payment_term.name as facture_conditions,
res_partner_mode_payment.name as mode_reglement,
numero,
(tva_taux/100) as tva_taux,
pec_organisme,pec_ref,pec_montant,
sale_order.name AS numero_commande,
sale_order.comment_facture as commentaire_facture,
sale_shop.pave_ligne1 AS pave1,
sale_shop.pave_ligne2 AS pave2,
sale_shop.pave_ligne3 AS pave3
FROM account_invoice,res_partner_address as customer_partner_address ,
 res_partner as invoice_partner, res_partner_address as invoice_partner_address,
sale_shop , res_partner as shop_partner , res_partner_address as shop_partner_address
, account_invoice_line,sale_order_invoice_rel,sale_order,res_partner_address as lieu_intervention
,account_payment_term,res_partner_mode_payment
WHERE account_invoice.id IN (169)
AND account_invoice.payment_term=account_payment_term.id
AND lieu_intervention.id=sale_order.partner_shipping_id
AND sale_order_invoice_rel.invoice_id=account_invoice.id
AND sale_order_invoice_rel.order_id=sale_order.id
AND sale_shop.partner_id = shop_partner.id
AND customer_partner_address.id = address_invoice_id
AND account_invoice_line.invoice_id=account_invoice.id
AND address_invoice_id = invoice_partner_address.id
AND invoice_partner_address.partner_id = invoice_partner.id
AND account_invoice.shop_id = sale_shop.id
AND shop_partner_address.partner_id = shop_partner.id
AND shop_partner_address.type = 'invoice'
AND res_partner_mode_payment.id=account_invoice.payment_mode_id
ORDER BY invoice_id;]]>
    </queryString>
    <field name="invoice_id" class="java.lang.Integer">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="invoice_number" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="period_start" class="java.sql.Date">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="period_end" class="java.sql.Date">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="date_invoice" class="java.sql.Date">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="date_due" class="java.sql.Date">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="bandeau" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="pied" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_name" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_address_name" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_street" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_street2" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_zip" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_city" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="customer_id" class="java.lang.Integer">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="customer_address_name" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="customer_address_street" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="customer_address_street2" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="customer_address_zip" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="customer_address_city" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="line_name" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="price_unit" class="java.lang.Double">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="quantity" class="java.lang.Double">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="invoice_name" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="amount_solde" class="java.lang.Double">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="reference" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="amount_expected" class="java.lang.Double">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="amount_tva" class="java.lang.Double">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="montant_total_ht" class="java.lang.Double">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="montant_total_ttc" class="java.lang.Double">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_email" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_phone" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_fax" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="shop_www" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="client_code" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="client_nom" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="lieu_rue" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="lieu_rue_suite" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="lieu_cp" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="lieu_ville" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="facture_conditions" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="mode_reglement" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="numero" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="tva_taux" class="java.math.BigDecimal">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="pec_organisme" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="pec_ref" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="pec_montant" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="numero_commande" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="commentaire_facture" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="pave1" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="pave2" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <field name="pave3" class="java.lang.String">
        <fieldDescription><![CDATA[]]></fieldDescription>
    </field>
    <group name="facture" isStartNewPage="true" isResetPageNumber="true" footerPosition="StackAtBottom">
        <groupExpression><![CDATA[$F{invoice_id}]]></groupExpression>
        <groupHeader>
            <band height="248" splitType="Stretch">
                <textField isBlankWhenNull="false">
                    <reportElement key="textField-1" x="2" y="0" width="246" height="14"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement>
                        <font isBold="true" pdfFontName="Helvetica-Bold"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{shop_name}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement key="textField-3" x="2" y="14" width="246" height="123"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement>
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{shop_address_name}
+"\n"+$F{shop_street}
+"\n"+$F{shop_zip}+" "+$F{shop_city}
+"\n"+"Tél: "+ (($F{shop_phone}!=null) ? $F{shop_phone} : "")
+"\n"+"Fax: "+ (($F{shop_fax}!=null) ? $F{shop_fax} : "")
+"\n"+"email: "+ (($F{shop_email}!=null) ? $F{shop_email} : "")
+"\n"+ (($F{shop_www}!=null) ? $F{shop_www} : "")
+"\n"+ (($F{pave1}!=null) ? $F{pave1} : "")
+"\n"+ (($F{pave2}!=null) ? $F{pave2} : "")
+"\n"+ (($F{pave3}!=null) ? $F{pave3} : "")]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement key="textField-4" x="248" y="90" width="262" height="100"/>
                    <box>
                        <pen lineWidth="0.0" lineStyle="Solid"/>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Center">
                        <font size="10"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{customer_address_name}+"\n"+$F{customer_address_street}+(($F{customer_address_street2}!=null)?"\n"+$F{customer_address_street2}:"")+"\n"+$F{customer_address_zip}+" - "+$F{customer_address_city}]]></textFieldExpression>
                </textField>
                <staticText>
                    <reportElement key="staticText-4" x="0" y="233" width="248" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Left">
                        <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
                    </textElement>
                    <text><![CDATA[DESIGNATION]]></text>
                </staticText>
                <staticText>
                    <reportElement key="staticText-5" x="378" y="233" width="84" height="14"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Center">
                        <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
                    </textElement>
                    <text><![CDATA[PRIX UNITAIRE HT]]></text>
                </staticText>
                <staticText>
                    <reportElement key="staticText-6" x="314" y="233" width="58" height="14"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Center">
                        <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
                    </textElement>
                    <text><![CDATA[QUANTITE]]></text>
                </staticText>
                <staticText>
                    <reportElement key="staticText-7" x="462" y="233" width="65" height="14"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Center">
                        <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
                    </textElement>
                    <text><![CDATA[TOTAL HT]]></text>
                </staticText>
                <textField isBlankWhenNull="false">
                    <reportElement key="textField-15" x="3" y="137" width="245" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Left">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA["FACTURE N° : "+$F{numero}]]></textFieldExpression>
                </textField>
                <textField isBlankWhenNull="false">
                    <reportElement key="textField-16" x="3" y="214" width="245" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Left">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA["PERIODE DE FACTURATION : du "+$F{period_start}.getDate()+"/"+($F{period_start}.getMonth()+1)+"/"+($F{period_start}.getYear() + 1900)+" au "+$F{period_end}.getDate()+"/"+($F{period_end}.getMonth()+1)+"/"+($F{period_end}.getYear() + 1900)]]></textFieldExpression>
                </textField>
                <textField isBlankWhenNull="false">
                    <reportElement key="textField-17" x="3" y="150" width="245" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Left">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA["DATE DE FACTURATION : "+$F{date_invoice}]]></textFieldExpression>
                </textField>
                <textField isBlankWhenNull="false">
                    <reportElement key="textField-18" x="3" y="175" width="245" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Left">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA["CLIENT : "+$F{client_nom}]]></textFieldExpression>
                </textField>
                <textField isBlankWhenNull="false">
                    <reportElement key="textField-19" x="3" y="188" width="404" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Left">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA["LIEU D'INTERVENTION : "+$F{lieu_rue} + " " + (($F{lieu_rue_suite}!=null)?$F{lieu_rue_suite}:"") + " - " + $F{lieu_cp} + " " + $F{lieu_ville}]]></textFieldExpression>
                </textField>
                <textField isBlankWhenNull="false">
                    <reportElement key="textField-20" x="3" y="201" width="404" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Left">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA["N° DE CLIENT : "+$F{client_code}+" - COMMANDE N°"+$F{numero_commande}]]></textFieldExpression>
                </textField>
            </band>
        </groupHeader>
        <groupFooter>
            <band height="195" splitType="Prevent">
                <line>
                    <reportElement key="line-2" x="4" y="7" width="531" height="1"/>
                </line>
                <rectangle>
                    <reportElement key="rectangle-4" x="326" y="14" width="204" height="146"/>
                </rectangle>
                <textField pattern="#,##0.00 ¤" isBlankWhenNull="false">
                    <reportElement key="textField-9" x="441" y="51" width="85" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Right">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.Double"><![CDATA[$F{amount_tva}]]></textFieldExpression>
                </textField>
                <textField pattern="#,##0.00 ¤" isBlankWhenNull="false">
                    <reportElement key="textField-10" x="441" y="67" width="85" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Right">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.Double"><![CDATA[$F{montant_total_ttc}]]></textFieldExpression>
                </textField>
                <staticText>
                    <reportElement key="staticText-10" x="338" y="50" width="99" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Right">
                        <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
                    </textElement>
                    <text><![CDATA[Montant TVA :]]></text>
                </staticText>
                <staticText>
                    <reportElement key="staticText-11" x="338" y="67" width="99" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Right">
                        <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
                    </textElement>
                    <text><![CDATA[Montant Total TTC :]]></text>
                </staticText>
                <textField pattern="#,##0.00 ¤" isBlankWhenNull="false">
                    <reportElement key="textField-11" x="441" y="19" width="85" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Right">
                        <font size="8"/>
                    </textElement>
                    <textFieldExpression class="java.lang.Double"><![CDATA[$F{montant_total_ht}]]></textFieldExpression>
                </textField>
                <staticText>
                    <reportElement key="staticText-12" x="338" y="19" width="99" height="13"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                        <bottomPen lineWidth="0.0" lineColor="#000000"/>
                        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    </box>
                    <textElement textAlignment="Right">
                        <font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
                    </textElement>
                    <text><![CDATA[Montant HT :]]></text>
                </staticText>
                <textField isStretchWithOverflow="true" isBlankWhenNull="false">
                    <reportElement key="textField-14" x="441" y="115" width="85" height="20"/>
                    <box>
                        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
 &n

Link to comment
Share on other sites

Hi,

Try to attach the jrxml file, because the fragment posted inline is incomplete. I tested a local jrxml sample with 2 groups in iReport 4.0 and I was able to set the footer positions completely unsynchronized.

It's a good idea to upgrade to iReport 4.0 and see if your issue still persists. If so, the bug could be logged here.

Hope this helps,

sanda

Link to comment
Share on other sites

Ok, now I see the problem. :)
I thought you was talking about two separate groups, each having its own footer section.
But the report contains a single group with a multiband footer section, and in this case the footerPosition attribute refers to the position of the entire footer section, ie all bands in the group footer section are forced to the same position.

In this case the solution is to separate the two footer bands. Maybe the following trick could be useful:

Define a second group in your report with the same group expression as the first group (in this case the first group will enclose this second one, but having the same expression, these 2 groups will break at the same time). In the second group do not set a groupHeader section, and set as groupFooter the first band you defined in the footer section of the first group. Remove this first band from the footer section in the first group. Set the footerPosition as StackAtBottom for the first group, and as Normal for the second one.

I know the solution sounds a lot complicated, but if you take a look at the modified jrxml I attached here, things will look a little bit simplified.

Hope this helps,
sanda



Post Edited by shertage at 03/02/2011 15:50
Link to comment
Share on other sites

thanks, i will try it.

 

sorry, i did not say i have only one group (and two group footer on the same group) and not two groups.

i fixed the topic's subject.

 

To give you a better image of what i need, here an example :

i need to print a set of advertissements.

each adveretissement contains a list of product (so my detail - my group)

just after the detail table, i need a total section (so my first footer group), and its size (height) is variable (not fixe not static).

and at the bottom of each first page group i need a coupon for subscription to fill.

i can't use the classic 'document/page foot because i will print one document with all the advertissements and i need one coupon by 'first-page' group (i apply a new page for each group).

In fact i need the feature "footer page group" that iReport seems to not have in its bagage. That why i need two group footers. One just after the detail, and the other one in the bottom of page.

 i hope my example is basic and clear because in real life it is not an advertissement but an invoice and the coupon is the paiment paper to send back with the money.

And we can't afford us the put the coupon in the last page of the group because people often doesn't read the whole invoice, just the first page....



Post Edited by michaelremy at 03/02/2011 16:51
Link to comment
Share on other sites

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