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

Free Support Forum - aspose.com

Aspose Words: mail merge moustache syntax

Hi, I’m looking into using Aspose.Words for a mail merge type of application.

The documentation briefly mentions the “moustache” field syntax. This might be preferrable for me over actual MERGEFIELDs. I have a couple of questions:

Is this actively supported?

Is there more documentation regarding the #foreach directive?

Would it be possible to add an #if directive? Currently it looks like there’s no substiitute for using the standard MS-Word IF field for conditional text.

Thank you,

Hi Tom,

Thanks for your inquiry, A better way to build reports from template documents is to use LINQ reporting engine of Aspose.Words. Please refer to the following section of documentation:

LINQ Reporting Engine Programmers Guide

Best regards,