We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What Field Codes are supported during Mail Merge

Thread ID:





98244 Feb 16,2011 11:13 AM UTC Feb 17,2011 01:22 PM UTC ASP.NET Web Forms (Classic) 1
Tags: DocIO
Asked On February 16, 2011 11:13 AM UTC

Could you please supply me with a definitive list of which field codes DocIO supports and doesn't support during a mail merge.

The reason I ask is that I have the following in a Mail Merge template:

{ IF { MERGEFIELD Gender } = "Male" "Him" "Her" }

If I run the mail merge using word then this gets turned into the text "Him" or "Her" depending on the value of the merge field Gender.

When I run a mail merge using DOC IO what ends up in the document is this field code:

IF " " MERGEFIELD Gender Female = "Male" "Him" Her"

This is wrong and resolves to the text " ".

Even more surprising the actual value of the Gender field is "Male" so I don't know where it's getting the string of spaces from.

Poornima R [Syncfusion]
Replied On February 17, 2011 01:22 PM UTC

Hi John,

Thank you for your interest in syncfusion products.

Regarding “definitive list of which field codes DocIO supports and doesn't support during a mail merge.”, in this line did you exactly mean Merge formats or list fields supported in DocIO?

Regarding the issue “Wrong space text added during mail merging”, we are not able to reproduce the mentioned issue in our latest version We have prepared the sample for your requirement. Could you please find the sample from the below link. DocIO do not have support for updating the If field. Once the document is generated you need to manually update the field to get the correct field result.


Our latest version is rolled out and available for download under the below location. Could you please try upgrading to our latest version and run the provided sample and let us know if this helps you.

Latest version down load link:


Please let us know if you have any questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon