This project is read-only.

Writing image to HSSFHeader and HSSFFooter

Aug 25, 2016 at 3:39 PM
My requirement is to write data to excel Header & Footer section which is accomplished using the following code. HSSFHeader header=this.sheet.getHeader(); header.setCenter("XXX"); header.setLeft("YYY"); header.setRight(HSSFHeader.page()); HSSFFooter footer=this.sheet.getFooter(); footer.setCenter("XXX"); footer.setLeft("YYY"); footer.setRight("ZZZ"); My question is how can I write an image (for eg:a logo)to the header/footer? setCenter() setLeft() setRight() alll expects String Please help me to resolve the issue.