Adding the style object to a document styles list

Hi support,

I have an issue regarding style object handling: I am able to extract a style object from a source doc file, but I couldn’t find any method to add it to the styles list of a target doc. I saw that I can add a style to the styles list by specifying two parameters : style type and style name, and then, that style object can easily be edited by code. Thus, I want to avoid to create a style with the same name like the one from the source doc and to parse&read&edit in parallel for every property.

Another solution for copying styles between documents would be to create the target doc as an instance of the source file, and then save the target document with another name. But this works only for a single source document, so that’s why a solution of manipulating style objects would be very useful.

Thank you,
Milan Cutlac

Hi
Thanks for your interest in Aspose.Words. Unfortunately there is no way to import styles from one document into another one. You can only create a new style in the target document and edit it.
Best regards.

Hi Alexey,

Is there any chance that importing styles shall be supported in the current year releases? Actually, just a method to add a style object to a style objects list is necessary, beacause the method to get one is already implemented.

Regards,
Milan Cutlac

Hi
Thanks for your inquiry. This issue already logged in our defect database as issue # 3286. I will consult with our developers regarding this issue and provide you more information.
Best regards.

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

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