Aspose.Words not handling bookmarks correctly in mailmerge

Hi Aspose Support

We are using Aspose.Words mailmerge in our application to produce documents using existing .Docx documents as main documents for the mailmerge.

However we have discovered that the mailmerge is not handling bookmarks correctly. When bookmark is used in a REF construct then the resulting value for all records in the mailmerge is rendered with the value from the last record.

I have added an example solution in a zip file + some examples and a small guide for the supplied solution

AsposeTests.zip:
The test solution without a license

ExamplesOfWrongAndRightResultingDocuments.zip: ExpectedResult_produced_by_MS_Word_MailMerge and │
WrongResult_produced_by_version_22_6_To_version_26_9, each as .Docx and .Pdf

GuideToAsposeWordsTest.zip:
GuideToAsposeWordsTest.docx

AsposeTests.zip (17.2 KB)

ExamplesOfWrongAndRightResultingDocuments.zip (199.2 KB)

GuideToAsposeWordsTest.zip (15.7 KB)

@StenBille
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-29678

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.