I think the exception is caused at this line:The loadObject method is returning a JasperReport object, not JasperPrint.
I think your code needs to be refactored to use a JasperReport object and to compile the jrxml file into a jasper file beforehand.
Joined: Apr 30, 2013
thanks for the help, its generating an excel file but the file is empty! does it have anything to do with HashMap in
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap<String, Object>());
If so then how do i populate the file?