Hi,
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:
{REF NatureOfLicence * CHARFORMAT * MERGEFORMAT}
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”);
d.UpdateFields();
d.Save(@“C:\temp\updated_with_aspose.xml”);
Thanks for you help.
Alex.