示例#1
0
  /** Escribir el píe del informe. */
  protected void writeFooter() {

    HSSFSheet sheet = getExcel().getActiveSheet();
    HSSFFooter footer = sheet.getFooter();

    if (showDate) footer.setLeft("Date " + HSSFFooter.date());

    if (!StringUtils.isEmpty(textFooter)) footer.setCenter(textFooter);
  }
示例#2
0
  /** Escribir el píe del informe. */
  protected void writeFooter() {

    HSSFSheet sheet = getExcel().getActiveSheet();
    HSSFFooter footer = sheet.getFooter();

    if (showDate) footer.setLeft("Date " + HSSFFooter.date());

    if (!StringUtils.isEmpty(textFooter)) footer.setCenter(textFooter);

    if (showNumberPages)
      footer.setRight("Pages: " + HSSFFooter.page() + " - " + HSSFFooter.numPages()); // .,.r
  }