Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 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

 
discard

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.