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

1 Answer

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:

http://jamesemann.wordpress.com/2011/05/20/creating-content-types-with-document-templates-in-code/

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