Header written to HTML document does not repeat

Hi,

I am trying to write a program to export a Word document to an HTML file. So far everything has been very simple. My code just looks like :-

Doc = new Document(srcFileName);
mDoc.save("TEST.html");

The output document looks really good, but there is one problem. The header that is repeated on each page of the Word Doc is only shown once at the very start of the HTML doc.

Is there a config setting that I can use to make it repeat in the same places as the Word Document?

Thanks,
Scott

Hi
Thanks for your request. This is an expected behavior. HTML document is one page document that is why header is shown only at the beginning of the page.
By the way if your document contains multiple sections with header/footer, header will be displayed at the beginning of the section and footer at the end of the section.
https://reference.aspose.com/words/net/aspose.words.saving/exportheadersfootersmode/
Best regards,