Free Support Forum - aspose.com

Underscore ("_") is filtered by MailMergeWithRegions

Hi,

We are usin V3.5. The problem is that we have merge fields with "_" in their names (ex: MyMergeField_1)

When we call MailMergeWithRegions, it truncates the field name just before the "_" (MyMergeField_1 ==> MyMergeField) so it's looking for a field with a shorter name. If no field with the short name exists in the document, no merge is done...

We have a lot of fields with "_" in their names. This bug was not present with the previous version we used (Aspose.Word 3.3.3).

Thank you for prividing us a solution.

Alain

Thanks for reporting this issue to us. The bug is confirmed and logged to our defect base as Issue #832. This error will be fixed in the next release which will be in about 3-4 weeks from now.

Fixed in Aspose.Word 3.5.2 that will be released on March, 17.