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

Accessing all settings of MERGEFIELD

Thread ID:





94199 Apr 29,2010 01:23 AM UTC May 4,2010 07:50 AM UTC WinForms 3
Tags: DocIO
Administrator [Syncfusion]
Asked On April 29, 2010 01:23 AM UTC


I can access Textbefore and TextAfter and TextFormat properties of a MERGEFIELD.

What about checking for MERGEFORMAT switch?

Leads to a more generic question,how complete is FIELD support in DocIO? Can I create and extract all field types and switch settings?


Poornima R [Syncfusion]
Replied On April 29, 2010 11:59 AM UTC

Hi Tim,

Thank you for your interest in Syncfusion Products.

We have prepared the sample for your requirement.Could you please find the sample from the below link. Try running the sample and let us know if this helps.

Sample link:

Please let us know if you have any queries.


Administrator [Syncfusion]
Replied On April 29, 2010 09:10 PM UTC


How is the sample relevant to my question?

I am asking about WField/WMergeField, not form fields.

The main question was, how can I check for the MERGEFORMAT switch in a Word Field e.g.

And how can I programatically add the /* MERGEFORMAT to a field definition when generating a document.

Poornima R [Syncfusion]
Replied On May 4, 2010 07:50 AM UTC

Hi Tim,

Thank you for your update.

Sorry for the long delay in responding.Currently DocIO do not have support for programatically adding the mergeformat in the document. It can only preserve the mergeformats in the document.We have created the sample for your understanding.Could you please find the sample from the below link.Try running the sample and let us know if this helps.

Sample link:

Please let us know if this helps.



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