prinsesajade Posted March 27, 2009 Share Posted March 27, 2009 hi!i am having problem with my report..this report will show the list of all agency and the employees from that agency will be the subreport..i have created a master report(Agency.jrxml) and my subreport(Employee.jrxml)..upon previewing my design in iReport (that is Execute Icon) only the master report is shown and my subreport is missing..and when i run my java code for the report i got an error saying: Cannot load object from location: Employee.jrxml..when i remove my subreport from the master all things goes well but when i put it back an error again..i think i have the wrong conncetion between my master and subreport..am i doing it ryt?Insert Element-->use Existing-->i set the Path-->Finish..can someone help me?Thanks... Link to comment Share on other sites More sharing options...
glen Posted April 1, 2009 Share Posted April 1, 2009 This just sounds like a path error. Try putting in the full path to the report. 'load object from location: ...' is trying to find Employee.jrxml in the current directory ie. the directory where you run your java code from I would imagine. Link to comment Share on other sites More sharing options...
prinsesajade Posted April 7, 2009 Author Share Posted April 7, 2009 yeah i did it and it worked! i just added few more lines and cha-da!thank you so much! 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