Anonymous
09-10-2002, 01:56 AM
Hi,
I have used two groups in my XML file for jfreeReport (Version 0.7.5b) but I dosn;t works properly and both of the groups are shown in the same page here is the XML code:
<groups>
<group name="Group1">
<fields>
<field>FIELD1</field>
</fields>
<groupheader height="30" fontname="SansSerif" fontstyle="bold" fontsize="14" pagebreak="true">
<rectangle name="rect2" x="0" y="0" width="100%" height="100%" color="#CCCCFF" weight="0"/>
<line name="line4" x1="0" y1="0" x2="0" y2="0" weight="0.5"/>
<line name="line5" x1="0" y1="30" x2="0" y2="30" weight="0.5"/>
<string-field name="sf1" x="160" y="5" width="76" height="10" alignment="center" fieldname="FIELD1"/>
<label x="258" y="5" width="76" height="9" alignment="left">-</label>
<string-field name="sf1" x="260" y="5" width="76" height="10" alignment="center" fieldname="FIELD1"/>
</groupheader>
<groupfooter height="30" fontname="SansSerif" fontstyle="bold" fontsize="11">
</groupfooter>
</group>
<group name="Group2">
<groupheader height="30" fontname="SansSerif" fontstyle="bold" fontsize="14" pagebreak="true">
<label x="0" y="100" width="70" height="12" alignment="left">My Label 1:</label>
<string-field name="PERFORMANCE_INDICATOR" x="250" y="100" width="76" height="10" alignment="left" fieldname="FIELD2"/>
</groupheader>
<fields>
<field>FIELD2</field>
</fields>
<groupfooter height="30" fontname="SansSerif" fontstyle="bold" fontsize="11">
</groupfooter>
</group>
</groups>
Thanks in advance,
Payam
I have used two groups in my XML file for jfreeReport (Version 0.7.5b) but I dosn;t works properly and both of the groups are shown in the same page here is the XML code:
<groups>
<group name="Group1">
<fields>
<field>FIELD1</field>
</fields>
<groupheader height="30" fontname="SansSerif" fontstyle="bold" fontsize="14" pagebreak="true">
<rectangle name="rect2" x="0" y="0" width="100%" height="100%" color="#CCCCFF" weight="0"/>
<line name="line4" x1="0" y1="0" x2="0" y2="0" weight="0.5"/>
<line name="line5" x1="0" y1="30" x2="0" y2="30" weight="0.5"/>
<string-field name="sf1" x="160" y="5" width="76" height="10" alignment="center" fieldname="FIELD1"/>
<label x="258" y="5" width="76" height="9" alignment="left">-</label>
<string-field name="sf1" x="260" y="5" width="76" height="10" alignment="center" fieldname="FIELD1"/>
</groupheader>
<groupfooter height="30" fontname="SansSerif" fontstyle="bold" fontsize="11">
</groupfooter>
</group>
<group name="Group2">
<groupheader height="30" fontname="SansSerif" fontstyle="bold" fontsize="14" pagebreak="true">
<label x="0" y="100" width="70" height="12" alignment="left">My Label 1:</label>
<string-field name="PERFORMANCE_INDICATOR" x="250" y="100" width="76" height="10" alignment="left" fieldname="FIELD2"/>
</groupheader>
<fields>
<field>FIELD2</field>
</fields>
<groupfooter height="30" fontname="SansSerif" fontstyle="bold" fontsize="11">
</groupfooter>
</group>
</groups>
Thanks in advance,
Payam