Hi,
This seems to have been discussed before but I thought I'd ask the question once more and see if there are any updates?
Is it possible to combine a jasper report and its sub-reports into a single .jrxml file? The reason I want to do this is that we do not retrieve the jasper report from the file system but pass it into the JasperReports code as an inputstream.
One post by Peter Henderson describes combining the compiled subreports (.jasper files) into one large byte[]. This could be a possibility for us but seems extremely hacky. I would have though Japser should be able to handle embedded subreports in the XML file that contain the full report, not just a link to the next jrxml file.
Any thoughts are very welcome.
Many thanks,
Tim
This seems to have been discussed before but I thought I'd ask the question once more and see if there are any updates?
Is it possible to combine a jasper report and its sub-reports into a single .jrxml file? The reason I want to do this is that we do not retrieve the jasper report from the file system but pass it into the JasperReports code as an inputstream.
One post by Peter Henderson describes combining the compiled subreports (.jasper files) into one large byte[]. This could be a possibility for us but seems extremely hacky. I would have though Japser should be able to handle embedded subreports in the XML file that contain the full report, not just a link to the next jrxml file.
Any thoughts are very welcome.
Many thanks,
Tim
4 Answers:
Posted on November 29, 2006 at 8:22pm
Hi,
we also don't work with filesystem but instead within JBoss... As I use many many SubReports I created so called "PrintTemplateSets" such a set always contains one master and many subreports...
this structure is stored in Database. (the design and also the compiles object, to not compile the design everytime when used).... When printing I just load the whole set from database and but it into a so called "DataContainer".... the subreport expressions in MasterReport are something like
we also don't work with filesystem but instead within JBoss... As I use many many SubReports I created so called "PrintTemplateSets" such a set always contains one master and many subreports...
this structure is stored in Database. (the design and also the compiles object, to not compile the design everytime when used).... When printing I just load the whole set from database and but it into a so called "DataContainer".... the subreport expressions in MasterReport are something like
Code: |
$P{DataContainer}.getSubReportByName("NameOfTheNeededSubReport"«»)</td></tr></tbody></table><br /> <br /> works fine since about two years (and hopefully many years yet).....<br /> <br /> So I don't see the need of your featureRequest. Jasper is so flexible... you only have to be creative! :-)<br /> <br /> just my two cents!<br /> hth<br /> C-Box |
Posted on December 1, 2006 at 6:34am
Well, in my project i'm using a hibernate API, and when i wants to generati a multiple subReport, i'm only throwing the property.util as the container of the details one. Its absolutely tricky one. But in fact, when i generating it, it is completely slower than other techniques. :blink: