We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert Nested Merge Field inside IF Field in Word Document & Execute Mail Merge using Java

I have the same problem and cennot solve it. I tried to inspect the testDoc-file but it is marked private.
Can I please get access to TestDocs.zip to see how exactly the fields are embedded into a Word doc?


Please see TestDocs.zip (17.7 KB) and try running the following code:

Document doc = new Document("D:\\temp\\input.docx");
doc.getMailMerge().execute(new String[]{"show"}, new String[]{"true"});

Hope, this helps.