[jasperreports-questions] Multiple Object in DataSource Collection

2009-10-09 Thread harishsyndrome
Hello All, I need to use two objects for generating reports with JRXML dataCollection.add(project); dataCollection.add(coverage) I use JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(dataCollection); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,

Re: [jasperreports-questions] Multiple Object in DataSource Collection

2009-10-09 Thread harishsyndrome
Without knowing much about your code or system I would say you need a subreport to use 2 datasources. However if the data you need is in 2 separate databases then why not use a join sql statement? The Query is session.createQuery(from jasperReport.Project P,jasperReport.Coverage C where