Jump to content

Problem With SubReport


prinsesajade

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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