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

Free Support Forum - aspose.com

ASPOSE.Words skips IF statement in the mail merge

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.

Hi Muthuvel,

Thanks for your inquiry.

Perhaps, you are using an older version of Aspose.Words; as with Aspose.Words v13.7.0, I am unable to reproduce this problem on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v13.7.0 and let us know how it goes on your side. I hope, this will help. I have attached the output Docx file with this post for your kind reference.

Thank you. As you have suggested, It is working fine with latest version.

Currently we are having licensed version 11.10.0
Could please give us information about the upgrade process?
Hi Muthuvel,

Thanks for your inquiry.

Your query is related to our sales team. Please post your query at Aspose.Purchase forum here:
http://www.aspose.com/community/forums/aspose.purchase/220/showforum.aspx

My colleagues from sales team will reply you about the upgrade process.

Thank you. I have followed your instructions and posted in the specific forum.