Aug 11, 2015 11:25 AM|Boris Pavlovic|LINK
From what you said I would say that you are actually looking for a "Mail Merge" where you use a Word document as a template containing placeholders that need to be populated with values from a database (or any other data source). If so, I would strongly
suggest you to check Docentric Toolkit which already does all this and much more, before delving into creating your own solution from scratch. This solution will allow you to place many types of placeholders (string,
number, datetime, image), plus other types of tagging elements, e.g. repeating blocks, charts, sub documents. You can insert these tags not just in the body of a document, but also in headers and footers of multiple sections.
If your budget doesn't allow 3rd party components, then I suggest you to use Open XML SDK, but it in order to create a mail merge library, it will probaby cost you much more tan a 3rd party product.
BTW, don't even think of using Office COM (Office/Word automation) - this approach doesn't work (especially) in ASP.NET applications.