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

Free Support Forum - aspose.com

UpdateFields truncates text in bookmark cross-reference


We are experiencing an issue with a bookmark field reference ({REF BookmarkName…}) where the text is being truncated which does not happen when updating with MS Word.

The bookmark reference is as follows:

The full bookmark value is as follows:
Le droit d’exploitation et de diffusion permet à Radio-Canada d’exploiter l’émission sur tous les territoires et tous les marchés ainsi que le droit de céder ces droits à des tiers

I am attaching 3 files for your analysis.

1. before_update.xml
-this is the sample document before any field updates are applied (bookmarks are hidden)
2. manually_updated_in_word.xml
-this was updated manually in word and then saved. Notice that the above bookmark is displayed in it’s entirety.
3. updated_with_aspose.xml
-the field reference were updated and the document saved using the following script (this is where you can see the bookmark value is truncated):

Document d = new Document(@“c:\temp\before_update.xml”);

Thanks for you help.


Hi Alex,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 16.12.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-14698. Your thread has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

Hi Awais,

Thanks for the quick response.
Do you have a workaround for this issue? We are in production with this and really need a fix asap.



Hi Alex,

Thanks for your inquiry. Unfortunately, your issue is currently pending for analysis and is in the queue. So, we can’t provide you any workaround at the moment. Once the issue is analyzed and root cause has been identified, we will then be able to provide you more information. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-14698) have been fixed in this Aspose.Words for .NET 17.2.0 update and this Aspose.Words for Java 17.2.0 update.

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