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

How can I dynamically add a SharePoint content type field into a Word document with OpenXML SDK?

Thanks

share|improve this question
    
SharePoint should already do this for you automatically... Any reason you need to do it yourself? –  Paul Lucas Dec 15 '11 at 13:15
    
Yes. There is not a standard template for the documents. I need to insert this field into all Word documents programmatically. –  Élodie Petit Dec 15 '11 at 16:30
add comment

1 Answer

up vote 0 down vote accepted

I'd suggest doing it in an Event Receiver. Where in the word document do you want to add the Content Type ? In a Bookmark ?

I might have some sample code I can send you.

Ian.

share|improve this answer
    
Hi Ian. I need to insert the field into footer area. –  Élodie Petit Dec 22 '11 at 18:35
    
What version of Word are you using ? –  Ian Jan 3 '12 at 16:29
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.