If you want to use the report query to retrieve data, you need to pass the data connection to the report in one of the following ways: If the query is SQL and you are using JDBC to execute it, by calling Code:JasperRunManager.runReportToPdf(jasperReport, parameters, jdbcConnection); In the general case, the connection parameter should be included in the parameters map, e.g. Code:[code]//for SQL queries parameters.put(JRParameter.REPORT_CONNECTION, jdbcConnection); //or for HQL queries parameters.put(JRHibernateQueryExecuterFactory.PARAMETER_HIBERNATE_SESSION, hibernateSession); //etc [/ul] HTH, Lucian