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

Free Support Forum - aspose.com

XHTML support in IMailMergeDataSource implementation

Hi,
We have substantial amount of XHTML information in the data that we use to generate a document using Aspose.Words in Java. I use the insertHtml method of DocumentBuilder to get the same reflected on the output document.
But when I try to use the IMailMergeDataSource implementation for looping/repeating data, the parsing fails and I get the tags as is.
For example, BOLD appears as: BOLD is the output document.
Any suggestions?
Regards,
-rfc!

Hi
Thanks for your inquiry. I think that you should use MergeFieldEventHandler in this case. Please see the following link.
https://reference.aspose.com/words/net/aspose.words.mailmerging/ifieldmergingcallback/
I hope this could help you.
Best regards.