Adding a custom document template to the document Library
- by ybbest
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.