View Full Version : two questions

08-13-2002, 04:29 AM
I've download jFreeReport 0.7.5 and I complete sure it's a good product.
but there are three questions I can't overcome
1,How can I add field name into jfreereport.....as following

employName offerTotol (where can I do it)
tom 100,000
mike 200,000

2, I've to use jfreerepot under jdk 1.2.2. can I get lowwer edition jfreereport for 1.2.2


08-14-2002, 05:28 PM

printing the fieldname into the header of an report is easy. Just create a Group without any fields defined, and place the labels there. A group without any fields will print its header when the report is started (after the reportheader) and print its footer before the report is ended (before the reportfooter).

<group name="default">
<groupheader height="...">
<label x="0" y="0" width="50%" height="12" .... >employName</label>
<label x="0" y="12" width="50%" height="12" .... >offerTotal</label>

<groupfooter height="...">

The item lines are defined in the items tag:

<string-field ... field="employName"/>
<number-field ... field="offerTotal"/>

To your second question: There were backports to 1.2.2 mentioned on this list in earlier threads. Maybe you can use one of those ports ...

Have more fun,
said Thomas