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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Word mailmerge with HTML fields?

Thread ID:





143863 Apr 8,2019 01:05 PM UTC Apr 10,2019 04:02 AM UTC ASP.NET MVC - EJ 2 3
Tags: DocIO
Tomislav Tustonic
Asked On April 8, 2019 01:27 PM UTC


I'm using DocIO MailMerge feature to generate Word (docx) documents, which works fine.
However, some of the merge fields sometimes contains HTML instead of simple text .
This is very simple HTML, mostly short text and formulas with subscripts and superscripts.
Is it possible to somehow insert and correctly convert HTML into a merge field?

Thanks, Tom

Abirami Varadharajan [Syncfusion]
Replied On April 9, 2019 11:43 AM UTC

Hi Tomislav, 

We have prepared a sample application to insert HTML text in the merge field using MergeFieldEventHandler in DocIO. Please find the sample from the below link and let us know if it helps you.

If you are facing any problems in your HTML text, then kindly share us the input documents and the expected output. Thereby, we will check at our end and share you the appropriate solution at the earliest. 

Tomislav Tustonic
Replied On April 9, 2019 12:11 PM UTC

This works fine, great!


Abirami Varadharajan [Syncfusion]
Replied On April 10, 2019 04:02 AM UTC

Hi Tomislav, 

Thank you for updating us. 

Please let us know if you need further assistance. 



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

Live Chat Icon For mobile
Live Chat Icon