HI all, Sometimes when I execute a report, the sql is returning 0 rows and I get the PDF empty. I'm executing the sql in my java class, so I'm putting $P!{sql_query} in the query report window. My Questions: 1) Can jasperprint return a value to know if the sql is returning empty resulset ? JasperPrint jasperPrint=JasperFillManager.fillReport(fileName, parameters, con3); 2) Is there any way to know that there ara no rows, so I don't have to send the PDF ? I would like to send a little message saying that there are no rows.. nothing more.. Thnaks in advance for your help.. Post edited by: jaumeg, at: 2007/04/20 09:53