Hi
Thanks for your inquiry. I tried to use your code and it seems that all works fine on my side. I used the latest version of Aspose.Words for testing. Try to update your Aspose.Words.
The latest version of Aspose.Words is available for download from here.
Please, let me know if this will not help you.
Best regards.
Hi
Thanks for your reporting this problem to us. I managed to reproduce the problem. I have logged this problem to our defect database as issue # 3979. Please expect a reply before the next hotfix (within 2-3 weeks).
Also you can use workaround to solve this problem. See the following code.
Document doc = new Aspose.Words.Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToHeaderFooter(HeaderFooterType.HeaderPrimary);
builder.InsertCell();
builder.Write("header text");
builder.EndRow();
builder.EndTable();
doc.Save(@"309_100398_phucbui\out.doc");