Updating a Word Document and Rewriting it
Posted on 2004-09-24
Using ColdFusion MX, I would like to be able to open a Word Doc, replace a few pieces of text, and then write the "new" updated text into a new word doc. Basically I use a Word doc as a template. I replace some variables in that doc and then I need to create a new doc. I am able to do all of this thus far, however, the new Word doc that I write to is unreadable. How can I replace these variables and still maintain the formating needed for Word to read the document correctly?