Get All Aliases of Style in Word Document - Set Style Aliases in Word Document using Java

Hello,

In case we have a Word file containing styles with name containing semicolon (like “TM1;H1_TOC;toc1;H1-TOC”)
The call style.getStyleName() will return only “TM1”.

Is there a way to get the full name (with all values) ?

Hi Jean,

Thanks for your inquiry. Could you please attach your input Word document here for testing? We will investigate the issue on our end and provide you more information.

Best regards,

Hello,

Here is a Word document with an added style ‘NewStyle;New-Style;NouveauStyle;N-S’.
It appears in quick style bar as ‘New-Style’ but if you open the modification dialog on this style you can see the full name.

Your Word Java API seems to build 4 styles instead of one, with the name “NewStyle” for each of them.

Best regards,

Hi Jean,


Thanks for your inquiry. Microsoft Word displays a style with aliases as name plus all aliases comma separated. This means that this style is named NewStyle but also can be accessed by its aliases e.g. through doc.Styles[“N-S”] which will return the same Style object as doc.Styles[“NewStyle”]. I hope, this helps.

Best regards,

Hello,

Thanks for your reply.

Is there any way to retrieve all aliases used for a Style in a document with your java Word API ?

Best regards,

Hi Jean,


Thanks for your inquiry. I have logged your requirement in our issue tracking system as WORDSNET-10872. We will further look into the details of this requirement and keep you updated on the status of this issue. We apologize for your inconvenience.

Best regards,

Hello,

Any news about this issue ?
We really need a fix about it because it is a blocking issue on one of our main project.

Thanks

Hi Jean,


Thanks for being patient.

We have a good news for you i.e. the fix of WORDSNET-10872 will be included in Aspose.Words 14.11.0 release which is planned to be published by the end of this month. We will inform you via this thread as soon as the ‘‘14.11.0 - Nov 2014’’ release of Aspose.Words is published.

Best regards,

Hello,

This is really a great news.
Thanks a lot for all of your work.

Best regards,

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


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

Hello,

We just tested this new feature. It works fine. Thanks.
But it seems there is no setAliases on Style object.

I forgot to say we also need the setAliases on the Style object. We should be able to get style aliases and restore them for one of our main project.

Is there a way to do it ?
This is quite urgent.

Hi Jean,

Thanks for your inquiry. I have logged this requirement in our issue tracking system as WORDSNET-11359. Our development team will further look into the details of this requirement and we will keep you updated on the status of this issue. We apologize for your inconvenience.

Best regards,

Ok Thanks a lot.

Hello,

Do you have any news from developpement team about the setAlias method ?
We really need it.
It’s very important and urgent for us.

Best regards,

Hi Jean,

Thanks for your inquiry. Unfortunately, at the moment we cannot provide you any reliable estimate and this issue is not likely to be fixed in the near future. The implementation of this issue has been postponed till a later date and we cannot push it into production right now because there are many other important issues we have to work on. We will inform you via this thread as soon as this issue is resolved. We apologize for your inconvenience.


Best regards,