jasemilly Posted May 3, 2011 Share Posted May 3, 2011 Hi I have a report that contains a couple of subreports that works great in I report.I have uploaded each subreport into the repository I then uploaded my main report. When I run my report from JasperServer I get an error saying report cannot be found and it references my c drive not the repository. I changed the links when I uploaded the main report. Pointing the references for the sub reports to the repository. I can't see what I am doing please help!!!!! I have a presentation tomorrow argh!!!!! thanksJasemilly Link to comment Share on other sites More sharing options...
andre187 Posted May 3, 2011 Share Posted May 3, 2011 In iReport in the Repository-Navigator you should upload your Subreports in the Resources-Dir from your Report. Post Edited by andre187 at 2011-05-03 17:22 Link to comment Share on other sites More sharing options...
jasemilly Posted May 4, 2011 Author Share Posted May 4, 2011 I can't see any such directory I may be being a bit stupid. Link to comment Share on other sites More sharing options...
jasemilly Posted May 5, 2011 Author Share Posted May 5, 2011 I was being a little stupid I have found that directory and my subreports were already in there. So left with the problem why is the error message saying it's trying to open subreports from the c drive? thanks for any help!! Link to comment Share on other sites More sharing options...
jasemilly Posted May 5, 2011 Author Share Posted May 5, 2011 HiI have noticed a parameter called subreport_dir, the value of which is a folder on my local c drive and the folder I save my reports in. should I alter this value to repo: ????? or some other valuethanks Link to comment Share on other sites More sharing options...
khahn Posted May 6, 2011 Share Posted May 6, 2011 Please take a look at step 13-16 in section 8.3 of the attached document. It describes adding a subreport to a report. Hope this helps. Link to comment Share on other sites More sharing options...
jeanjenkins Posted May 10, 2011 Share Posted May 10, 2011 Hi,Try this - In iReports, select your subreport. In properties, change the subreport expression from your local file to "repo:yoursubreportname", assuming it is in the same repository directory as the main report. 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