It's alive !!! I found in another thread something to pass the connection as a parameter: parameters.put("REPORT_CONNECTION",conn);// conn is a java.sql.Connection object and it's working now. The thread with the information is in: http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=55312 See you later, Juan Code:Map<String, Object> params = new HashMap<String, Object>();params.put("SUBREPORT_DIR", urreportpathhere);params.put("SUBREPORTDATASOURCE", urdatasourcehere);JasperPrint print =JasperUtil.fillReport(mainreportpath, params, mainreportdatasource); Post Edited by jvencebi at 10/05/2010 17:47