Assume we have some WORD (*.docx) template in which we have placed some tags (for example word “@CustomerName" or "@CustomerPhoneNumber”).
We want to replace programmatically these tags by some formatted texts
Let say the template content is:
My customer name is: @CustomerName
We want to replace tag (@CustomerName) by some real texts.
The additional problem is that the replacing real text may be a formatted (with different formating e.g. colored fonts, bold italic etc).
The additional problem is that the replacing texts we have prepared in HTML so they need to be converted on the way before inserting into Word.
So in fact the task is divided into two portions:
1. Converting simple HTML text into a text, which could be exported to WORD
2. Inserting above created text into Word template.
We are interested to find solution for both tasks (together or separate).