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

Thread: report format

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

    Default report format

    Hello...

    I will make my first report in jfreereport and I have the following doubt.

    My report consists on several groups of rows, these groups will be shown or not according to the read data of the database.

    In this case, how should I define the report format? using XML or in the code of the API. See page 23 in jfreereport-0.8.3-US.pdf

    Regards

  2. #2
    Join Date
    Mar 2003
    Posts
    7,558

    Default

    Hi,

    in JFreeReport (as in every report application) groups are used to divide a set of row into spearated sections (aka groups). These sections can also be divided (this creates subgroups).

    So if you remove a group from the report, you just remove a ivision rule, and not any data. Have a look at the demos (SampleReport1 & 2) to see how groups are used to split a given set of rows.

    If your reports have only a few alternative group setups, if may be easier to create separate reports for every choice. If you dont want that, you can now either use the API to define the reports or use the XML to create an initial report layout which is then modified by the API after the parsing.

    Both ways of defining the report definition will produce the same results and both definition ways provide the same posibilities. Of course, the XML definition may be easier to edit and maintain ...

    Have more fun,
    said Thomas

Posting Permissions

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