john.v.little Posted September 22, 2014 Posted September 22, 2014 We have a report with 3 levels of sub report. iReport + jasper server used to support this. It used to take the reports with their references to xxx.jasper and rewrite them to repo:xxx.jrxml.Report Studio does not do this when you deploy reports to server (5.6).It does recognise the top level of sub reports, and does upload them as jrxml resources, but it doesnt edit the main report, and when you try and run the main report on the server, it always fails as it cant find the sub-reports.We went through many "solutions" to this posted by people with the same problem, but they are all for older versions, and do not work on the current version. (e.g. there is no resources folder in 5.6). E.g. we manually changed every instance of xxx.jasper to repo:/reports/report_files/xxx.jrxml in all reports, deployed the main report, then added all the sub reports jrxml files as resources using the "Add resource" link in "Controls and REsources" of the "edit" function of the main report on the server. No luck.Not sure what to do at this stage. Runs fine in report studio, but not possible to run on server.
darth_fader Posted September 22, 2014 Posted September 22, 2014 I've run into the same issue. I use IReport to publish reports with sub-reports to JasperServer, and it properly sets the sub-report references within the parent report. I've only done this with two levels though (parent-child). Also, this requires using the "subreport-directory" parameter to specify report locations when running locally. Think jasper knows to translate that to "repo:fileName" when uploading to JasperServer.
john.v.little Posted September 22, 2014 Author Posted September 22, 2014 thanks for the reply. Ufnortuntaely, jasper server makes no translation from file.jasper to repo:dir/file.jrxml. I had to do it all by hand - it took hours. This makes using nested subreports almost unusable
john.v.little Posted September 22, 2014 Author Posted September 22, 2014 Unfortuantely, this forum system wont let me cut and paste the answer directly, but here is a link to the solution I put on stack overflow:http://stackoverflow.com/questions/25973670/jasperserver-cant-find-sub-reports
darth_fader Posted September 24, 2014 Posted September 24, 2014 It is disappointing, in some respects Jasper Studio seems like a rush job. I have to keep both iReport and JasperStudio handy to accomplish different things. And iReport is officially "desupported", when it goes alot of good functionality goes with it. JasperStudio != iReport!!!
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