if (list.isEmpty()) {
return;
}
CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
CombinedReportOptions options = new CombinedReportOptions();
options.setPageA5();
options.setOrentation(PageOrentation.horizontal);
options.leftMargin = 0;
options.rightMargin = 0;
options.subReportNewPageType = CombinedReportOptions.NewPageType.beginNotFirst;
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);