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

Free Support Forum - aspose.com

Center Alignment in Header field not working

When i tried to load a document file which has some contents in the headers, the alighnment is getting changed (Center Aligned is getting changed as Left Aligned).

Attaching the Input and Output files.
I used the following code

Document m_oOutDoc = null;
m_oOutDoc = new Document(@"c:\Input.doc");

Please let me know if i can use any other methods to resolve this issue.


Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I can’t reproduce this issue on my side. I use the latest version of Aspose.Words (5.2.2) for testing. You can download it from here:


Hope this helps.

Best regards.

Hi Alexey,

Thanks it worked with the latest version of the compoent. I have been using version of Aspose.Words.