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

Free Support Forum - aspose.com

Unable to add built-in Style using Java Word API

Hello,

We are unable to create a built-in Style using Aspose Java Word API.

For example :
I load a document containing a built-in Style (style identifier = 66).
If a want to create a new document i can not add such a Style (with same style identifier).

Is there a way to do it ?

Thanks,

Hi Jean-Pascal,


Thanks for your inquiry. I would like to share with you that when you try to get
built-in style by using getByStyleIdentifier method and the style does
not exist in the document, Aspose.Word copies this style into
StyleCollection. This is expected behavior of Aspose.Words.

Could you please share some more detail about your query what exact you want to achieve using Aspose.Words?