Free Support Forum - aspose.com

RTF styles lost in DocX

Hi,

I have included a sample RTF file where styles have been used. When converting this document to DocX all the styles are lost. I have checked the DocX package and the styles are actually in the styles.xml but there is no reference to any style in the document.xml, i.e. the paragraph run properties have no

<w:pStyle w:val="..."/>

but when I convert it using Word2007 the styles are present (note the RTF was created using Word2007 from a .doc file and saved as RTF).

I am using Aspose.Words.dll 4.4.30

Marc

Hi

Thanks for your reporting this problem to us. I managed to reproduce the problem. I have created the issue #4307 in our defect database. Please expect a reply before the next hotfix (within 2-3 weeks). We might just fix it by then or provide more information. Also note that DOCX is currently in beta.

Best regards.

Hi

We have released a new version of Aspose.Words that contains a fix for your issue.


Issue # 4307 - Styles lost after converting document to DOCX


The new version of Aspose.Words is available for download from here.

Best regards.