I’m having an issue when it comes to Aspose.Words 10.0 mail merge in conjunction with IF fields in Word.
Let me explain it step by step.
- There is a source document (see attachment “aaaa_uk_test_01.doc”) that contains merges field and conditional fields:
In ensured that I have selected all text and hit F9 to update all calculated fields before saving this document.
- The print preview of that source document looks like this:
Next, doing a mail merge with Aspose.Words and just to be sure call UpdateFields and UpdatePageLayout.
the generated document (see attachment “aaaa_uk_test_01 (16).doc”) looks like this:
- Strange enough, the print preview of that generated document looks like this (i.e. it is blank):
- Selecting all text and hitting F9 to update all calculated fields, the preview of the document looks correct:
For me this looks like an issue in the Aspose.Words mail merge engine. On the other hand, it could be that I’m doing something wrong here.
Can you tell me how to solve this and have the generated document behave correctly?