I've been working on dynamic report generation add-on to our application that creates a report on demand by the user. This is done completely in Java, no pre created jrxml files are used. We have classes that represent the base of each report and custom datasources that take advantage of pre-built calculations for the database. There is also a UI that allows the user to set conditions and insert groups dynamically. The groups allow for a total which is where my problem comes in. If I run a report where there is no subreport, everything works as expected. However, when I use a report that uses a subreport in the detail band, I find that the group footer totals get generated before the subreport has a chance to run, meaning that the totals are not available. I have played around with the setEvaluationTime() variables but with no luck. When I debug the custom datasources, I see the JRFields representing the group footer totals being requested in the main report datasource before the JRFields in the subreport datasource. The question I have is how do I ensure that the subreport in the detail generates its values prior to the group footer using the Jasper Reports API? I have not been able to find any java code samples to do this. As well, the java doc for the JasperReports API is details on some of the methods/variables available so I have not been able to find an answer there. Any insight/help would be greatly appreciated. Thanks in advance.