PDA

View Full Version : Report with data from different tables



Anonymous
04-18-2002, 10:04 AM
I'm trying to create an application that uses JFreeReport. I'd like some help on how to create Groups with different items.

Example:

REPORT:
Group 1:
------------------------
Name Id Address
------------------------
Paul 123 Main St.
Peter 456 Main St.

Group 2:
------------------------
City Population
------------------------
Sao Paulo 15M
New York 10M
Tokio 10M

Anonymous
04-25-2002, 03:49 PM
Just a question:
do you have 2 tables, which you want to be printed into a single report? Or do you have 1 table containing all fields?

If you have 2 tables, you have to create 2 reports. But if you have 1 table, and you want to stack on group into an other, then the <groups> tag is
what you needed. The sample file "report2.xml" uses this grouping feature.