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)