2005 IR Help Posted September 1, 2006 Share Posted September 1, 2006 By: sznajderman - fabszn JavaBean Datasource 2005-03-14 02:32 Hello, Is it possible to externalize the query from the report? I would like execute my query in the java code and give the result to the jasper report engine? there is any possibility? Thanks for your help. Fab By: Tbozu - tbozu RE: JavaBean Datasource 2005-03-16 17:06 sure.. use the JRDataSource. An implementation of JRDataSource is the JRBeanCollectionDataSource. An example is: JRBeanCollectionDataSource con1 = new JRBeanCollectionDataSource(result1); jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, con1); where result1 is the result of your query which is a collection 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