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

Free Support Forum - aspose.com

HTML mergefields


Is there any way to indicate that a mergefield contains HTML or some other sort of formatted text?

Thank you

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. If you need to insert HTML into the mergfireld you should use MergeField event handler. Please see the following link for more information.


If data you’d like to insert is valid HTML document of some other sort of documents supported by Aspose.Words then you can try using DetectFileFormat method. Please see the following link for more information.


Hope this helps.

Best regards.