SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to insert a line of text into an existing Word document that is stored in a document library. Would this be possible to do through an event or workflow? If so, how would I go about accomplishing this?

share|improve this question
up vote 1 down vote accepted

I would first write the code to modify the Word document. Assuming that you're using Office 2010, you can use the Open XML SDK, you can find specific instructions here.

Now you have to find a place to trigger this code, and you could do an EventReceiver or develop a workflow action. If you only need to do this whenever the document is added to the library the EventReciever will be the easier solution.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.