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

Free Support Forum - aspose.com

How-to : SaveFormat.Html and Mergefields

Hi,

Is there any way to detect Doc fields during saving as SaveFormat.Html, and insert a custome Html tag in the document generated ?

For exemple, I would like to export this kind of .Doc document :

Text { MERGEFIELD data } Text

To something like that :

Text
data
Text

Thanks

Hi

Thanks for your request. There is no such option. However, you can achieve this by replacing mergefield in your source document with placeholders and then after converting to HTML replace placeholders with tags you would like to see at place of mergefields.

The technique should be similar to the one described here:

https://forum.aspose.com/t/113953

Please let me now if you need more assistance, I will be glad to help you.

Best regards,