Jump to content
Changes to the Jaspersoft community edition download ×

JRBeanCollectionDataSource example

2005 IR Help

Recommended Posts

By: donald - zhanghonggang

JRBeanCollectionDataSource example

2004-06-24 19:52

I want to use JRBeanCollectionDataSource,but I just donot how to write the jrxml file.Can anybody tell me where can I get one,or post it out here?






By: it-xman - it-xman

RE: JRBeanCollectionDataSource example

2004-09-30 20:14


Actually, you don't write that in jrxml. Instead, you write or implement that in a java program, like this:


JasperFillManager.fillReportToFile(fileName, parameters, new JRBeanCollectionDataSource(CustomBeanFactory.getBeanCollection()));


You can look at the jasper report samples - datasource to get what I mean. Look at custombean.java and custombeanfactory.java in the sample to understand the implementation of a javabean.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...