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 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

share|improve this question
up vote 1 down vote accepted

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:

share|improve this answer
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 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.