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

Display HTML in a WTextFormField in a Syncfusion.DocIO.DLS.WordDocument

Thread ID:





116528 Jun 5,2014 11:19 AM UTC Jun 11,2014 05:34 AM UTC WinForms 3
Tags: DocIO
Chris Woodward
Asked On June 5, 2014 11:19 AM UTC


We have some text stored in the database as HTML. This markup includes paragraphs, bullet points etc 

What we would like to do is display this in a .doc so that the text retains its formatting i.e. the HTML is displayed in the .doc as it would appear in a Browser.

I have tried setting the FieldType property of the WTextFormField to "FieldType.FieldHTMLActiveX" but this did not work.

I should mention that we have other MergeFields in the same .doc that are just going to display plain text so we cannot just display the whole thing as html.

Thanks for your help,


Sathish K [Syncfusion]
Replied On June 6, 2014 12:59 PM UTC

Hi Chris,


Thank you for your interest in Syncfusion Products.


DocIO provides support to perform mail merge only with simple text and image. In order to perform mail merge with Html text, kindly make use of MergeFieldEventHandler to replace merged value (Html text) of a merge field with its equivalent formatted content using InsertHTML method. We have prepared a sample to illustrate the same. Please do find the sample from below link and let us know if this helps you.


Sample link:



Please let us know if you have any other questions.




Chris Woodward
Replied On June 10, 2014 10:41 AM UTC

Hi Sathish,
Thanks for your help.
We have got it working now.
Best wishes,

Sathish K [Syncfusion]
Replied On June 11, 2014 05:34 AM UTC

Hi Chris,


Thank you for your update.


We are happy to hear that the provided solution resolved your issue. Please let us know if you need any further assistance. We will be happy to assist you as always.





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