emptyCell.setCellStyle(emptyCellStyle);
}
}
}
HSSFHeader xlsHeader = xlsSheet.getHeader();
HSSFFooter xlsFooter = xlsSheet.getFooter();
if (StringUtil.stNul(leftHeader) != null) {
xlsHeader.setLeft(StringUtil.stNul(leftHeader));
}
if (StringUtil.stNul(centerHeader) != null) {
xlsHeader.setCenter(leftHeader);
try {
if (centerHeader.length() >= 254) {
centerHeader = centerHeader.substring(0, 254);
}
xlsHeader.setCenter(centerHeader);
} catch (Exception e) {
logger.log(Level.INFO, "Header string is too large.");
}
}
if (StringUtil.stNul(rightHeader) != null) {
xlsHeader.setRight(StringUtil.stNul(rightHeader));
}
if (StringUtil.stNul(leftFooter) != null) {
xlsFooter.setLeft(StringUtil.stNul(leftFooter));
}
if (StringUtil.stNul(centerFooter) != null) {
xlsFooter.setCenter(StringUtil.stNul(centerFooter));
}
if (StringUtil.stNul(rightFooter) != null) {
xlsFooter.setRight(StringUtil.stNul(rightFooter));
}
/**
* Print setup
*/