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<?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:

http://www.aspose.com/community/files/51/file-format-components/aspose.words/entry139624.aspx

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