US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: Report with data from different tables

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default Report with data from different tables

    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

  2. #2
    Join Date
    Mar 2003
    Posts
    4,947

    Default Re: Report with data from different tables

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •