We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Trouble copying headers

Hello, I am trying to copy the Header from one document into another document as described in the following forum: https://forum.aspose.com/t/104388

It compiles, runs, and generates a docx document.

When I try to open new docx file, MS Word gives the error:
The file […] cannot be opened because there are problems with the contents.

Undeclared prefix.
Location: Part: /word/header1.xml, Line: 1, Column: 3184

How can I debug this?

Hi Vincent,

Thanks for your inquiry. Could you please attach your Word documents here for testing? We will investigate the issue on our end and provide you more information.

Best regards,