Adding a custom document template to the document Library

Posted by ybbest on YBBest See other posts from YBBest or by ybbest
Published on Sat, 11 Jun 2011 13:19:30 +0000 Indexed on 2011/06/20 16:40 UTC
Read the original article Hit count: 321

Filed under:

After you create a SharePoint document library, you can start creating document based on the default document template. If you like to add you own custom template, you can easily achieve this by creating a SharePoint solution using visual studio. In this post, I’d like to show how to add a custom document template to the SharePoint document Library. You can download the complete source code here.

1. Create Empty SharePoint solution, creating a document library called “YbbestCustomDocLib” and adding a Module with a word document template called FAX.dotx

2. Modify the Elements.xml file in the module

FROM

TO

3. Finally, you need to create feature receiver to configure the Document TemplateUrl property of the document library.

You can download the complete source code here.


© YBBest or respective owner

Related posts about SharePoint 2010