Jump to content
JasperReports Library 7.0 is now available ×

error regarding reports using dwr with jasperRepor


mulam_anil

Recommended Posts

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 error

In 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...