"subreport", new Point(0, report.getFirstSectionByArea(SectionArea.DETAIL).getMinHeight()));
this.designer = designer;
this.report = report;
subreport = new Subreport(report, null);
Database db = (Database)report.getDataSource();
subreport.setDataSource(new SubreportDatabase(db.getConnection(),
subreport));
subreport.read(f);
subreport.addAllJoins(newJoins);