/** * Imprimir los campos totales. * * @throws Exception */ protected void writeTotalFields() throws Exception { if (isShowTotals()) { addRowIndex(); totalFields.generate( groups != null && groups.size() > 0 ? HSSFColor.ORANGE.index : (short) -1); } // Total de elementos impresos. if (showRecordCount) { HSSFCell cell = null; int rowIndex = getRowIndex(); cell = getExcel().getCell(rowIndex + 1, getInitColumnIndex()); getExcel() .setCellValue( cell, (textTotalRecords != null ? textTotalRecords + ": " : "Record count: " + new Integer(getDataSize()))); } }