Exporting headers and footers not really working

I’m using the HtmlSaveOptions.ExportHeadersFooters = True option to convert from Doc to Html and back to Doc.

When converting back to Doc, the Headers and Footers are not being retained. Only the text within the original header and footer is being placed in the resulting Doc, but not inside of an actual header and footer.

I would expect that by having the ExportHeadersFooters option would allow this, but it doesn’t really seem to work.

Any help on how to accomplish this would be appreciated.

Hi

Thanks for your inquiry. As you may know, HTML format does not support header/footers natively. When you specify ExportHeadersFooters option header is exported as a content at the beginning of the particular section and footer as a content at the end of the particular section.
In one of future versions, we will consider adding an option to export Headers/Footer as a separate files, like Ms Word does. In this case, you will be able to preserve headers/footers as is, after converting to HTML. We will notify you once this option is available.
Best regards,

Interesting solution. Can’t wait to hear when it is available. Thanks!

Hi Dan,
Thanks for your inquiry.
As a suggestion, you could implement this functionality now using a little extra code. You could format the content found in the header/footer with a special style (e.g Header) and save the HTML with CSS embedded. When reloading the HTML into a document format you could then move all content with that style to the header.
Thanks,