Jump to content
We've recently updated our Privacy Statement, available here ×

Error in compiling sub report


sulaiman2043

Recommended Posts

i have created a master report and a sub report. I have written the code in jsp to call the master report but it gives an error.Error

Error Loading object from file: "path where the sub report resides".

plz help me out if i am doing something wrong.

 jasperdesign = JasperManager.loadXmlDesign(getServletConfig().getServletContext().getRealPath("/reports/VoucherReport.jrxml"));
  jasperReport = JasperCompileManager.compileReport(jasperdesign);
     
      HashMap map = new HashMap();
      map.put("myParam",voucherId);       
       jasperPrint = JasperFillManager.fillReport(jasperReport, map, con); 
      JasperManager.printReportToPdfFile(jasperPrint,getServletConfig().getServletContext().getRealPath("/reports/myReport.pdf"));

 

it is throwing an exception on jasper print . plz help me out. need a sloution for this

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...