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

Free Support Forum - aspose.com

Collapse same styles in a document


I am trying to build a large document with heavy use of DocumentBuilder.ImportNode with KeepSourceStyles option.

It works well but the final document has a large number (hundreds) of duplicated styles (e.g. ListItem_1, ListItem_2, ListItem_3, … ListItem_356, Normal1 … Normal 400).

This makes manual editing harder for final users.

Is there any way to collapse these redundant styles?

Attached an example of the final document.


Thanks for your request. Please tell me what version of Aspose.Words do you use?
Best regards.

I am using Aspose.Words for .net 2.0


Thanks for additional information. I think this is a bug. I have logged this problem into our defect base as issue # 3644. We will try to fix this problem in one of future releases. The notification will be posted here in this thread as soon as it will be done.
Best regards.

The issues you have found earlier (filed as WORDSNET-1368) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.