2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: Patrick - patricksantana Join reports 2006-04-20 23:41 Hi, I have 3 reports: log_report.jrxml log_report_general.jrxml log_report_parameter_value.jrxml Today, I generated each one separed, like: jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, pSession.connection()); Is it possible to join the 3 in one? Thank you very much, Patrick By: mil_s - fuxia79 RE: Join reports 2006-04-20 23:56 You can create a master report that includes the three subreports (master report query can be, for example, "SELECT 1 FROM DUAL"). Alternatively you can create the three jasperPrint objects separatedly, put them in an ArrayList and then export them in a single pdf. JRPdfExporter export = new JRPdfExporter(); export.setParameter(JRExporterParameter.JASPER_PRINT_LIST,myArrayList); I don't know if I answered your question, but hope it helps. Bye By: Patrick - patricksantana RE: Join reports 2006-04-21 00:14 Thank you for your answer. I'm using JasperViewer to show the report to user. Do you think is possible to use the ArrayList of reports for it? Thank you, Patrick By: mil_s - fuxia79 RE: Join reports 2006-04-21 00:22 JasperViewer displays a jasperPrint, not an exported report, so it acts BEFORE the join. I'm not perfectly sure, but I don't think it's possible to display several jasperPrints in a single JasperViewer. By: Patrick - patricksantana RE: Join reports 2006-04-21 00:23 ok. I'll test. Thank you, By: Patrick - patricksantana RE: Join reports 2006-04-21 03:01 For close this issue. RESULT: The best solution in my case was create a MASTER and insert three subreports. I'd like a blank page, for this, use it group reports. 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