2004 IR Help Posted August 23, 2006 Share Posted August 23, 2006 By: aieiebrasov - aieiebrasov Concatening JasperPrint 2005-10-24 09:19 Hi, I have an ArrayList of JasperPrint elements. My need is to concatenate them into a unique JasperPrint: JasperPrint ---------> JasperPrint ---------> JasperPrint ... JasperPrint ---------> How can I do this? Thank you in advance, Aieie By: aieiebrasov - aieiebrasov RE: Concatening JasperPrint 2005-10-25 00:16 I know that a possible solutin is to export documents in XML using JRXmlExporter. Then they can be parsed back into in-memory JasperPrint using JRPrintXmlLoader. I'm following this way, but I can't find the right solution. Thank you very much Aieie By: Olaf Krause - housekatze RE: Concatening JasperPrint 2005-10-25 05:00 If you finally want to export that concated JasperPrint, so you may put all JasperPrint object s into a JasperPrintList and than export this list to one outputfile. Olaf By: legspinner - legspinner RE: Concatening JasperPrint 2005-10-25 08:03 But it seems if you pass a list to the JRXmlExporter such as exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST,jasperPrints); it won't make adifference cause the setInput() method in JRAbstractExporter only takes into account the first jasperprint object..now i am using .68..has this changed in recent builds. By: chiupw - chiupw RE: Concatening JasperPrint 2005-10-25 21:12 is it possible to convert the list to InputStream instead of export to a pdf file.... By: legspinner - legspinner RE: Concatening JasperPrint 2005-10-24 13:39 I am trying to do something similar. One way might be to add pages using the addPage() method but that seems to be messy. Let me know if you come up with a solution. By: Christoph J䧥r - cjae RE: Concatening JasperPrint 2005-10-28 00:07 Hi, I use this method of adding pages to a new report, and it works fine. In the end, we send the result to a printer, and create a PDF for archiving purposes. Both are ok. The only thing drawback I can think of might be that it may be possible for the system to reuse images and other repeating parts of your design on different pages, if they are created in one go (so the image is included in the output only once), but first creating several reports and concatenating them with addPage() makes this impossible (because the system does not know the images are the same). This technique could help decreasing PDF file size (maybe also print job size, if this is important). But this is, of course, only a wild guess, I don't know the internals. Best Regards, Christoph J䧥r 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