how can I put a content in a mergefield in docx
I'm developing a web application with asp.net and I have a file called Template.docx that works like a template to generate other reports. Inside this Template.docx I have some MergeFields (Title, CustomerName, Content, Footer, etc) to replace for some dynamic content in C#. I would like to know, how can I put a content in a mergefield in docx ? I don't know if MergeFields is the right way to do this or if there is another way. If you can suggest me, I appreciate! PS: I have openxml referenced in my web application. Edits: private MemoryStream LoadFileIntoStream(string fileName) { MemoryStream