private void buildFooter() { if (bean.getReportLayout().getPageFooterBand().getColumnCount() == 0) { return; } try { printPageFooterBand(); Footer footer = xlsSheet.getFooter(); footer.setCenter(footerS.toString()); } catch (QueryException ex) { ex.printStackTrace(); } finally { footerS = new StringBuilder(); } }
/** * Gets the user model for the default document footer. * * <p>Note that XSSF offers more kinds of document footers than HSSF does. * * @return the document footer. Never <code>null</code> */ public Footer getFooter() { return _sh.getFooter(); }