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

Free Support Forum - aspose.com

HTML mergefields

Hi

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.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.reporting.mergefieldeventhandler.html

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.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.document.detectfileformat_overload_2.html

Hope this helps.

Best regards.