Bug: Fields not being replaced and empty field names


I’m sending you two documents. The original mail merge document and the result.

The first problem is that the field ?Booking_Generated_By? has an empty field name in the GetFieldNames array

Secondly, as you can see in the results not all of the fields in the document are getting replaced.

My code works such that any unknown codes are replaced with an error message. Hence there should be no empty fields left over.

Best regards


Hi Steve,

These field names are enclosed in double quotation marks (if you switch field codes on in Word you will see it). Just remove the marks and it will work fine.

This particular version of Aspose.Word that you are using had problem recognizing marks in the field names. This has been fixed, but not yet released.


Fantastic…spot on…all working now.