Bug 46704 - There is no way to add an image to Header/Footer
Summary: There is no way to add an image to Header/Footer
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.2-FINAL
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2009-02-12 01:06 UTC by Maksym Symonov
Modified: 2015-10-07 10:15 UTC (History)
0 users

Trintech examples (874.19 KB, application/x-zip-compressed)
2010-03-26 21:08 UTC, dave.sprague

Note You need to log in before you can comment on or make changes to this bug.
Description Maksym Symonov 2009-02-12 01:06:11 UTC
There is HSSFFooter.PICTURE_FIELD in HSSFFooter, which has a sequence field "&G", that assumes that picture is someway attached to the proper section of footer/header and should be displayed by Excel. But the only way of attaching image to worksheet is patriarch.createPicture method which has HSSFClientAnchor parameter. HSSFClientAnchor supposes that image can be attached to cell(s), but there is no way to add it to header/footer section.
Comment 1 Yegor Kozlov 2009-02-24 00:51:45 UTC
Header and footer pictures are attached in a different way. Excel seems to store this data in the Header / Footer Picture Record (866h) which is not yet supported. 
I'm going to look into it but now sure how soon.

Comment 2 dave.sprague 2010-03-26 21:08:53 UTC
Created attachment 25192 [details]
Trintech examples
Comment 3 Javen O'Neal 2015-10-07 10:15:37 UTC
Related open bugs:
bug 53309 - similar request for XSSFWorkbooks
bug 58422 - similar request for SXSSFWorkbooks
bug 58237 - similar request for slideshow presentations