How do I combine multiple BIRT reports

We currently have a whole suite of report designs that cover various parts of our app, and these reports are generated on demand by our users.

I want to be able to bundle up several of these reports into a single report to return to the user.

I initially hacked up a custom report builder that generated report design files using segments inside a report library file, and then ran that generated design, but this was unwieldy and a pain to manage as I had to duplicate the individual reports (still required) inside the report library file. Any changes to the stand-alone reports had to be duplicated in the library for the combined reports.

What I am really looking for is a way to specify several design files, have them all run, and then return a single file to the user, containing all the reports they selected.


Asked by: Kevin778 | Posted: 21-01-2022






Answer 1

This is a fairly common request, that we are working on but have not solved yet.

One approach that is not ideal that you can use today is to run each report and then combine the output from each rptdocument. BIRT-exchange has an example of this here for PDF and HTML. The problem is that the page numbering will not be correct and the TOC will not be right either.

The better approach is if there was a merge report engine task that would allow you to combine multiple rptdocuments into a single rptdocument with appropriate pagination and TOC. There is a bugzilla entry here that I hope to see in the 2.5 (June 2009) version of the product. If you are interested please have a look in and give your feedback.

Finally, one of the features that I would like to see in the product for 2009 is some refinement to the DesignEngine API that allows a developer to easily compose a single report design at runtime, using components from other report designs. I have created a bugzilla to track this too.

If none of these seem appropriate let me know and I will see if I can help you find a different solution.

Answered by: Owen197 | Posted: 22-02-2022



Similar questions

java - TestNG combine multiple HTML TestNG reports into a single TestNG report

I'm running the Maven project' TestNG suite in multiple nodes. I'm using the HTMLReporter to generate the TestNG run result report. Each node generates one HTML report after it's run completion. The requirement to get a combined result report once the run is over. We need to combine all the test results into a single TestNG result. Is there a way to achieve that?


java - How to combine multiple PNGs into one big PNG file?

I have approx. 6000 PNG files (256*256 pixels) and want to combine them into a big PNG holding all of them programmatically. What's the best/fastest way to do that? (The purpose is printing on paper, so using some web-technology is not an option and having one, single picture file will eliminate many usage errors.) I tried fahd's suggestion but I get a NullPointerException when I try to...


swing - JAVA: How to combine message boxes with multiple outputs

I am learning Java and have a rather simple program that returns a series of numbers in accordance with the Collatz Conjecture. I can have it output into the console or have many JOptionPane.showMessageDialog() windows pop up, one with each number in it. How would I combine the JOptionPane.showMessageDialog()'s ...


java - Combine multiple sets of rows in SPARQL

I cannot describe my problem formally due to my bad English; let me tell it using an example. The table below is actually grouped by 'subject','predicate'. We define a set on rows, if they the same 'subject'. Now I want to combine any two sets if they contain the same 'predicate's, sum the 'count' of the same 'predicate', and count the number of distinct subjects which have a same set. subject pr...


How to combine multiple xml files into a single string in java

I have several xml files with different node structure. I want to extract xml content from each of these xml files and store former(xml content) as a single string. I am using following code to achieve it String xmlContent = FileUtils.readFileToString(new File("xyz"), "UTF-8"); but i am facing following error [Fatal Error] :5616:15: The processing instructio...


java - combine multiple windows to a single window

I am developing an application which have the following windows If the information entered in the windows are correct than only the user will be prompted with the windows in the above sequence. Now the customer has demanded me with this user interface. Now I have to add all these windows in the last window format, with the specification's as the user will be allowed in the 2nd portion of the last image if...


java - How could I do combine multiple tables to a new one

I have mutiple tables , let's say 20. And they have the same scheme as CREATE TABLE index[1-20] ( [id] [bigint] NOT NULL, [word] [varchar](100) NOT NULL, [positions] [nvarchar](max) NOT NULL, primary key(id,word) ) What I want to do now is to join these tables into one table. Suppose the tables can contains the same words. In this case , we just combine the positions together. otherwise j...


java - combine the table data in multiple csv files into one single csv file in ruby

I have data coming from files which is spread in different files like id,name,birthdate in one file and id,address in another file ie a csv files. This is just an example the user has to specify the columns as its done while using SSIS and what i want to do is create the combined file which has the whole content as id,name,birthdate,address are there any tools available in java/ruby for this? I have seen the sed s...


java - Combine multiple streams of events

Suppose I have N streams of data events and I would like to combine them into one, using some for of ordering (timestamp for instance). Let's say EventStream is defined to be: class EventStream{ Event peek(); Event next(); } Now I would like to take N event streams, wrap them in one stream, which would enforce ordering. However, I don not w...


java - How to Combine Multiple Jars into One?

I've read so many articles/explanations on this and spent too many hours, but everything is either too broad or specific. This question really only applies to an Applet I've made. It contains one Class, and requires 2 other Jar libraries. I've included these in the projects (multiple projects, because I've tried this in Netbeans and Eclipse...it's easy to recreate a one Class project). The point of all this is that...


Combine multiple strings into one JAVA

I have a set of strings which want to combine into one String with all sentences separated with coma like (*.csv) here is how it goes with me: String dataContainer; for(String tempString:setInput){ String finalString = "," + tempString + "," ; } This doesn't work with me :( But it should do for Set ex: Set<Strin...


tomcat - How do you launch multiple threads from within Java EE?

I need to scale calls into Tomcat and it's been suggested to launch threads internally. Has anyone needed to do this and, if so, what solutions did they come up with?


java - How to split a huge zip file into multiple volumes?

When I create a zip Archive via java.util.zip.*, is there a way to split the resulting archive in multiple volumes? Let's say my overall archive has a filesize of 24 MB and I want to split it into 3 files on a limit of 10 MB per file. Is there a zip API which has this feature? Or any other nice ways to achieve this? Thanks Thollsten


How should I cast for Java generic with multiple bounds?

Is it possible to cast an object in Java to a combined generic type? I have a method like: public static <T extends Foo & Bar> void doSomething(T object) { //do stuff } Calling this method is no problem if I have a class that implements both interfaces (Foo & Bar). The problem is when I need to call this method the object I need to pass to it is received a...


Vectors in Java, how to return multiple vectors in an object

I'm working on a java program, and I have several vectors defined and filled (from a file) inside a method. I need to return the contents of all the vectors from the method. I have heard you can put them all in one object to return them. Is that possible, and if so, how? If not, do you have any possible solutions for me? Thanks in advance for your help! Here is a code snippet: Object getInven...


java - Multiple rows per record in JSF?

having a myfaces datatable, is is possible to have 2 rows for each record? my simple one-row table looks like the following: <h:dataTable id="somelist" value="#{MyBean.somelist}" var="item"> <h:column> <f:facet name="header"> <h:outputText value="ID"/> </f:facet> <h:outputText value="#{item.id}"/> </h:column&...


java - How to access multiple JPanels inside JFrame?

I have a JFrame that contains a "display" JPanel with JTextField and a "control" JPanel with buttons that should access the contents of the display JPanel. I think my problem is related on how to use the observer pattern, which in principle I understand. You need to place listeners and update messages, but I don't have a clue where to put these, how to get ac...


java - JPA Multiple Embedded fields

Is it possible for a JPA entity class to contain two embedded (@Embedded) fields? An example would be: @Entity public class Person { @Embedded public Address home; @Embedded public Address work; } public class Address { public String street; ... } In this case a Person can contain two Address instances - home and work. I'm us...


java - Can you require multiple types at once?

Basically I want to do this: public interface A { void a(); } public interface B { void b(); } public class SomeClass { public SomeClass(<A&B> e) { // Note the type here e.a(); e.b(); } } What I did on the commented line is obviously illegal. I know I can just require the passed object to implement interface A, or interface B, but is there a way to...


java - Is it possible to run JUnit tests from multiple packages in Eclipse?

Is it possible to run JUnit tests for multiple packages at the same time without manually creating test suites. For example if I have the hierarchy: code.branchone code.branchone.aaa code.branchone.bbb code.branchtwo code.branchtwo.aaa code.branchtwo.bbb Is it possible to: Run all tests in code.branchone and in descendent packages Run all tests in say c...


java - How can I share my JSP .tag files between multiple contexts?

I have a set of .tag files (for example a tag that renders a copyright notice) that I want to share across all my application contexts on my Tomcat application server. I've only ever used them in a context's /WEB-INF/tags directory, referring to them via the taglib directive tagdir = "/WEB-INF/tags" How can I make the tags available to all my contexts?






Still can't find your answer? Check out these amazing Java communities for help...



Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)



top