parCreator.setUpReport(null, options, null);
try {
for (int i = 0; i < list.size(); i++) {
if (list.get(i) instanceof DelegatePrintable) {
DelegatePrintable del = (DelegatePrintable) list.get(i);
if (del instanceof SerRenLocal || del instanceof DiseaseLocal || del instanceof EmcLocal || del instanceof FollowupLocal) {
del.print(parCreator);
} else {
CombinedReportCreator subCreator = parCreator.createCombinedReporter(getClass(), 2);
CombinedReportOptions ops = new CombinedReportOptions();
ops.leftMargin = 0;
ops.rightMargin = 0;
ops.topMargin = 0;
ops.bottomMargin = 0;
subCreator.setUpReport(null, ops, null);
FormReportCreator creator = subCreator.createFormReporter(PrintCreators.class, 1);
creator.createReport(new HashMap<String, Object>(), null);
creator.finish();
del.print(subCreator);
subCreator.finish();
}
}
}
parCreator.finish();