I am using Jaspersoft Stuido.
I have a master report that contains three sub-reports, named "vehicleListSubReport.jrxml", "locoSubreport.jrxml", and "crewSubreport.jrxml" Their datasources are the fields "vehicleReport", "locoReport" and "crewReport" respectively, which are all objects of type JRDataSource. I have attached the jrxml file for the master report, and a pdf file for a sample of the output.
I am having a few problems, but I feel that they may have a single root cause, hence why I am asking about them all in the same question.
First problem: The crewSubreport has other report elements below it, including the other two sub-reports. If there are multiple records in this sub-report, it renders on top of the elements below it, including the other sub-reports.
Second problem: The data text fields below the crewSubreport are rendering (although with the subreport rendering on top of them), however, the static text boxes with the labels "Train Summary", "Number Vehicles:", "Tonnes Hauled:", "Total Length:", "Locos:", and "Tonnes Gross:" are not rendering, and I not yet able to determine why.
Third problem: Similar to the first problem, the locoSubreport is rendering into the space occupied by the vehicleListSubreport.
How do I fix these issues?
EDIT: I am adding the jrxml file that I made by changing the position type of the elements below the first subreport to "Float". I am hoping someone can explain why this approach causes my program to throw the following OutOfMemoryError: