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<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I think that you should use MergeFieldEventHandler in this case. Please see the following link.

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

I hope this could help you.

Best regards.