Hi,
If I run:
HeaderFooter headerFirst = null;
HeaderFooter headerPrimary = null;
HeaderFooter headerEven = null;
Document doc = new Document(wordDocPath + HeaderFooterFileName);
foreach (Section section in doc) {
headerFirst = section.HeadersFooters[HeaderFooterType.HeaderFirst];
headerPrimary = section.HeadersFooters[HeaderFooterType.HeaderPrimary];
headerEven = section.HeadersFooters[HeaderFooterType.HeaderEven];
}
All of the HeaderFooter objects are NOT null. Only headerPrimary has some text
From the example code I have seen, I am expecting headerFirst and headerEven to be null.
Is my expectation correct? If so, any ideas why headerFirst and headerEven is not null?