Jump to content

Multiple report items


rfkrocktk

Recommended Posts

I feel like I'm taking crazy pills. It's been really difficult for me to figure out how to use JasperReports.

Essentially, I have about 5 different java.util.List instances which each describe different data types and I'd simply like to create a table for each. However, it seems that Jasper Reports is more for just operating around a single list of data, and this is just a little frustrating and confusing. 

I'm looking to create something like this:

http://i.imgur.com/F8Z7R.png

My Java objects look somewhat like this

public class Thing {    private int id;    private String name;    private int rating;    ...    public int getId();    public String getName();    public int getRating();}[/code]

It's pretty simple, really. I'm just looking to have a "section header" with the title of each section, followed by a table of the data which can expand with more data.

Is this possible to do in Jasper Reports?

Post Edited by rfkrocktk at 03/13/2012 23:19

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I rfkrocktk,

This is not that difficult. I don't know if there is any other easier way for doing that but I had an issue similar to yours and what I did is to create one report for each list and then create a main report with subreports. In  your case, you should create 1 main report with 5 subreports in the detail band (one subreport for each list).

Hope this helps.

Regards.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...