I am working with sharepoint 2010, what I am trying to do is take a word document template, do a replace on a few key words (ex: replace ##ClientID##
with the id of the client) and save it with a specific name in a library on sharepoint.
I have figured out how to do this on a local computer with word interop, however the word interop library is not designed to be run as a service. I then discovered Word Automation Services which appear to do what I need to do. However every example I find on the internet (including here on SO) is just "How to convert from a word document to xxx" using the Microsoft.Office.Word.Server.Conversions
namespace. I have yet to find a example on how to use the Microsoft.Office.Word.Server.Service
namespace to do a find and replace on a document. The MSDN is very lacking on how to use the classes and I do not know where to begin using it.
Is it not possible to use the services to do what I want to? If it can be done can someone point me in the right direction to do what I want to do?
It appears that Word Automation Services is not what I want to use to do what I want to do, what I need is Open XML SDK.
UPDATE: here is the code on how to do a replace on the document, in my the text I wanted to replace where in rich text boxes. so that is why I am looking inside SdtRun.