-
Problem in sub reporting
Hi,
While i call report, my code works fine. but as i call subreport it shows following errors..........
net.sf.jasperreports.engine.JRException: Could not load object from location : current_room_info_subreport1.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObje ctFromLocation(JRLoader.java:255)
at net.sf.jasperreports.engine.fill.JRFillSubreport.e valuateSubreport(JRFillSubreport.java:317)
at net.sf.jasperreports.engine.fill.JRFillSubreport.e valuate(JRFillSubreport.java:266)
at net.sf.jasperreports.engine.fill.JRFillElementCont ainer.evaluate(JRFillElementContainer.java:256)
at net.sf.jasperreports.engine.fill.JRFillBand.evalua te(JRFillBand.java:482)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillColumnBand(JRVerticalFiller.java:1423)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillDetail(JRVerticalFiller.java:725)
at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReportStart(JRVerticalFiller.java:252)
What could be the problem,please help me...........
-
maybe you don't have the binary file :
current_room_info_subreport1.jasper
in the same directory as the calling jasper report. Its been a while since I have done Jasper. But usually it means you havent compiled your jasper file yet, or its sitting in some other directory. Hope that helps
-
No sir, I have compiled both master and subreport and are placed in the same directory. While I run from iReport it works and But when I call from java its showing those erroe, I may have leaving something. Please help me sir.
with regards
nayanjyoti
-
sorry, without installing iReport I can't really help you further.
-
sir, plz install iReport n test that........
please help me sir.........