I want to create a content type (programmaticall) which can be bound to excel instead of word, and add it to a List Library so when you click create new document it opens a excel template. thanks


You need to set the DocumentTemplate property.

You can create content type programmatically in FeatureActivated event. Refer to the link below, it can help you get started:


  • Thank you it was not exakt what I wanted but it helped me to solve my problem. – Medes Mar 2 '12 at 9:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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