I ran into an issue recently using the mail merge functionality. A customer had reformatted a template and for some reason one of Word’s _GoBack bookmarks got moved inside a TableStart/TableEnd section. This caused Aspose’s merge engine to completely ignore the mergefield defined by the TableStart/TableEnd section. Removing the bookmark fixed the issue. See attached documents.
In the notworking.docx, if you go to the Insert Tab and select BookMarks, recheck the “show hidden”, you’ll see there is a _GoBack bookmark (automatically generated by Word). If you select the GOTO button you’ll notice that the bookmark is right after the TableStart:SecondaryLinks mergefield. When I run this template in our code, the SeondaryLinks section is skipped. In working.docx, I removed the hidden _GoBack bookmark and the merge works perfectly.
This seems like a defect. Shouldn’t the merge engine still recognize the mergefield?
Thanks for the quick response. We are not using the latest because we found that version 13.1 had a defect where table borders were frequently not rendered. Can you confirm that this issue was fixed in version 13.2?
- OS (Windows Version or Linux Version)
- Architecture (32 / 64 bit)
- .NET Framework version
- Please supply us with the output document showing the undesired behavior
- Please supply us with the expected document showing the desired behavior (You can create this document using Microsoft Word).
thanks again for the quick reply. looking back at my notes it was actually not version 13.1 that had the border issue but version 11.11. I will try the latest version of Aspose and see if it resolves the bookmark issue and missing table border issue for us.