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");
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.