Hi,
We have written a program that uses templates(user defined) created in docx files to create agreement documents. The agreement file is typically about 50-60 pages.
We use parameters in the format of |p|customername|p| in the template file and use the openxml library to replace the parameters with the actual data.
The problem is, some parameters are replaced and some are not. When we opened the template file as an xml(document.xml), we found that MSWord has stored the "|p|" in a separate <w:r xmlns:w="#unknown"> tag and "customername" in a separate <w:r> tag (Actually for some parameters even the "|" is stored in a separate tag). When we search for the parameter as one single word, it is not found.
Is there any way of controlling the way MSword stores the words or is there any other solution for this problem?
Thanks in advance