Use Office Open XML SDK to add headers and footers to the word document. As I understand you have an html file where you have header and a footer. So, its easy to do with Office Open XML SDK.
You need to use like this
namespace OOXML
{
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;
public class WordProcess
{
public void AddHeader(string wordFile, string header, string footer)
{
using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(wordFile, true))
{
foreach (HeaderPart hp in wordDoc.MainDocumentPart.HeaderParts)
{
Header h = hp.Header;
}
foreach (FooterPart fp in wordDoc.MainDocumentPart.FooterParts)
{
Footer f = fp.Footer;
}
}
}
}
}
For more help visit this link
http://openxmldeveloper.org/[
^]