2005 IR Help Posted August 27, 2006 Share Posted August 27, 2006 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? thanks. By: it-xman - it-xman RE: JRBeanCollectionDataSource example 2004-09-30 20:14 Hi, 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now