Hello, I have problem with subReport and beans. I have the following java code to create the Main report. ( The object used are described in the source code ) JasperDesign jasperDesign = JRXmlLoader.load( filepath ); JasperReport jasperReport = JasperCompileManager.compileReport( jasperDesign ); List<ObjectVO> objectVOList = new ArrayList<ObjectVO>(); objectVOList .add( ObjectVO ); JasperPrint jasperPrint = JasperFillManager.fillReport( jasperReport , new JRBeanCollectionDataSource( objectVOList ) ); JasperExportManager.exportReportToPdfFile( jasperPrint , filepath ); I have added in the classpath a jar containing the two objects ObjectVo and AnotherObjectVO. In my mainReport, i have the code below to include the subReport in the detail band : <subreport> <reportElement x="27" y="11" width="502" height="54"/> <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($F{anotherObjectVOList})]]></dataSourceExpression> <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "subReport.jasper"]]> </subreportExpression> </subreport> And in my subReport i have the following code in the detail band : <textField> <reportElement x="348" y="5" width="100" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression> </textField> I doesn't work and i don't understand why ? I have the following error : 1. JRBeanCollectionDataSource cannot be resolved to a type value = (net.sf.jasperreports.engine.JRDataSource)(new JRBeanCollectionDataSource(((java.util.List)field_anotherObjectVOList.getValue()))); <------------------------> 2. JRBeanCollectionDataSource cannot be resolved to a type value = (net.sf.jasperreports.engine.JRDataSource)(new JRBeanCollectionDataSource(((java.util.List)field_anotherObjectVOList.getOldValue())) <------------------------> 3. JRBeanCollectionDataSource cannot be resolved to a type value = (net.sf.jasperreports.engine.JRDataSource)(new JRBeanCollectionDataSource(((java.util.List)field_anotherObjectVOList.getValue()))); <------------------------> I have already see this error in another post but i there was'nt the solution. Could you help me ?It's a little bit urgent. Thanks in advance Xavixxxx Code: Post Edited by at 11/09/2009 16:07