detalsBand.setHeight(1);
}
else {
detalsBand.setHeight(2);
JRDesignBreak jrBreak = new JRDesignBreak();
jrBreak.setType(JRDesignBreak.TYPE_PAGE);
switch (options.subReportNewPageType){
case begin:
case beginNotFirst:
jrBreak.setX(0);
subreport.setY(1);
break;
case end:
case endNotLast:
jrBreak.setX(1);
subreport.setY(0);
jrBreak.setPositionType(JRDesignBreak.POSITION_TYPE_FLOAT);
break;
default:
throw new IllegalArgumentException("Uncnown options.subReportNewPageType paramiter");
}
jrBreak.setPrintWhenExpression(createFieldCallExpresion(SUBREPORT_NEW_PAGE_FLAG, Boolean.class));
detalsBand.addElement(jrBreak);
}
detalsBand.addElement(subreport);
}