Bug 45623

Summary: Need the 'stripFields' flag for header/footer extraction similar to WordExtractor and HeaderStories
Product: POI Reporter: Dmitry Goldenberg <dgoldenberg>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: critical    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Sample Excel doc with header with macros.

Description Dmitry Goldenberg 2008-08-12 13:27:23 UTC
Created attachment 22439 [details]
Sample Excel doc with header with macros.

A flag was just added to WordExtractor and HeaderStories which allows you to strip off any macros from headers and footers when extracting them.

It would be great to make the same flag available in HSSF.

I'm attaching an Excel file where a header is defined with a bunch of macros. When I run the code below, I get:

>>>> CH: HEADER TEXT &P&N&D&T&Z&F&F&A&G

With the stripFields flag ON we would simply get "HEADER TEXT"
Comment 1 Nick Burch 2008-08-14 14:41:34 UTC
A similar feature for hssf has now been added to svn