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

Free Support Forum - aspose.com

Incorrectly Indenting


When we load the original.doc file in word 97 it looks fine.

We the load it using aspose words and re-save it (in this case as RTF but also happens with doc).

Opening the converted file in word 97 the indenting now seems to be incorrect.

Any help would be welcome

Thank you

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

Thanks for your reporting this to us. I managed to reproduce this problem. I have created new issue #5275 in our defect database. I will notify you as soon as it is fixed.

Best regards.

Do you have a work around and/or a time frame on when the next hot fix will be as this is quite an issue for us.

Thanks

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

Thanks for your inquiry. Unfortunately this issue is unresolved yet. As a workaround you can try using the following code:

Document doc = new Document(@"Test271\Original.doc");

foreach (Paragraph par in doc.GetChildNodes(NodeType.Paragraph, true))

if (par.IsListItem)

par.ParagraphFormat.LeftIndent = 21;

doc.Save(@"Test271\out.doc");

Hope this helps.

Best regards.

We have found the issue with this.

It seems to be if the file is edited or created in word 2003 then viewed in 97 corrupts the indenting.

You can fix it in word 97 but then it is wrong in word 2003.

So it tuns out putting it through aspose words is not the issue in this case.

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

Thank you for additional information. Actually this issue is already fixed in current code base.

Best regards.

The issues you have found earlier (filed as 5275) have been fixed in this update.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />