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

Free Support Forum - aspose.com

Export HTML string to Merged Field of Word document in C# MVC

Hi All,

I want to replace HTML format string to Merged field in MVC application.
For Eg: Pravin

@pravinghadge,

Thanks for your inquiry. In your case, we suggest you please implement IFieldMergingCallback interface. In IFieldMergingCallback.FieldMerging, please move the cursor to the mail merge field and insert the HTML using DocumentBuilder.InsertHtml method.

Please refer to the following article.
How to Insert Check Boxes or HTML during Mail Merge

Thank you so much Tahir for your support

@pravinghadge,

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

Hi Manzoor,

After save of document i have to open the same document.

For Eg:

doc.Save(fileName);

//After above line i have to open the same document

@pravinghadge,

Thanks for your inquiry. Could you please share some more detail about your issue that you are facing? Please ZIP and attach your input Word document and HTML here for testing. We will investigate the issue and provide you more information on it.

Hi Manzoor,

Thanx for your reply

I am not getting any error or issue.

I don’t know the code to open saved file using aspose dll

Can you please suggest

@pravinghadge,

Thanks for your inquiry. It seems that you want to view the saved document using Aspose.Words. Please note that Aspose.Words for .NET is just a class library and with it you can programmatically generate, modify, convert, render and print documents without utilizing Microsoft Word®. So, it does not offer any UI or web control to view document. Hope this answer your query.

Thanx Manzoor.
My query has been resolved