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

Free Support Forum - aspose.com

Center Alignment in Header field not working

Hi,
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");
m_oOutDoc.Save(@"c:\Output.doc");

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

Hi
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:
https://releases.aspose.com/words/net
Hope this helps.
Best regards.

Hi Alexey,
Thanks it worked with the latest version of the compoent. I have been using 4.4.1.0 version of Aspose.Words.
regards
Tony