I have a header which I need to set on every page that is printed on a dynamic excel sheet.
Is there any way to get the page number ?
HSSFHeader header = sheet.getHeader();
Then you can set left, center and right text including font, font style, font size, page number, date, time etc.
header.setCenter(HSSFHeader.font("Calibri", "regular") + HSSFHeader.fontSize((short) 14) + "My " + HSSFHeader.startBold() + "Styled" + HSSFHeader.endBold() + " Text with page number " + HSSFHeader.page());