mulam_anil Posted November 14, 2007 Share Posted November 14, 2007 i had written reportGen class in that class public void dbConnection(String reportSrc,String reportJasper,String reportDest,List itemlist){ System.out.println("in ReportGen"); try{ System.out.println("entered"); Map parameters = new HashMap(); parameters.put("Title", "The Item Report"); System.out.println("after entered2"); //JasperDesign jasperDesign = JRXmlLoader.load(reportJasper); JasperDesign jasperDesign = JRXmlLoader.load( reportSrc); System.out.println(jasperDesign);this code executed fine after JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); System.out.println(jasperReport); String[] fields = new String[] { "id", "name","stockType","description","unit","stockLimit"}; HibernateQueryResultDataSource ds = new HibernateQueryResultDataSource(itemlist, fields); jasperPrint=JasperFillManager.fillReport(jasperReport, parameters, ds);this code is not executed.it shows this errorIn ReportGenDAO.java D:MVCHospitalManagementwebreportsitem.jrxml (The system cannot find the path specified) D:MVCHospitalManagementwebreportsitem.jrxml (The system cannot find the path specified) Link to comment Share on other sites More sharing options...
martynhiemstra Posted November 14, 2007 Share Posted November 14, 2007 The error is pretty obvious. It can't find the file D:MVCHospitalManagementwebreportsitem.jrxml. Verify the file exists. Where are your backslahes by the way? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now