I have the question that how to only clear headers or footers in document? That’s to say:
I only want to clear header and keep footer unchanged or clear footer and keep header unchanged, how to do it?
For Each section As Aspose.Words.Section In Doc.Sections section.HeadersFooters.Clear() Next
By using the above code, all the header and footer are cleared, but I only want to clear the headers.
Thanks for your help.