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 need to Open and modify a document that resides on a Sharepoint Document Library.

These changes on the file are done during an event generated by a Document Library, so I must change it by code.

Is there any way to do that? I tried to use Microsoft.Office.Interop.Word but without success.

Thank you very much

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Ziba,

OpenXML SDK is what you are looking for, OpenXML SDK can help you edit and create word, excel and other documents programmatically and it works great with SharePoint!

Following links can help you:
Modifying Open XML Documents using the SharePoint Object Model
SharePoint and OpenXML

ERIC White as written many articles on SharePoint with OpenXML:
http://ericwhite.com/blog/category/open-xml/

I hope this helps

share|improve this answer
add comment

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.