We are using ASPOSE.Words .NET component to perform mail merge. Previously we were using
Microsoft Word to do this job. Now we have an issue that ASPOSE does skip the
IF statements in the mail merge template document.
The IF statement look like this:
{IF{ MERGEFIELD GLOBAL_OTHC}= “Y” “Thank You”}
While do mail merging this IF statement is not evaluated by ASPOSE, and in the output we are having balnk line in its place.
But by adjusting spacing between the “{” and the adjutant character, like below
{IF { MERGEFIELD GLOBAL_OTHC} = “Y” “Thank You”}
the same statement works with ASPOSE.
But when we use the Microsoft Word previously it worked without any problem regardless of spacing between the “{”
Is Aspose being strict on the spacing of IF statement’s syntax?
The client have hundreds of various template documents having the IF statement in the way I mentioned previously.
They were all working fine with when we were using MS Word component.
Now it is not viable solution to open each template document and change the spacing in the IF statements.
Herewith I have attached the template document with the particular IF statement in it.
Please investigate and propose an effective solution to handle this issue.