Wednesday, November 28, 2012

Creating SP 2010 Form Library using Visual Studio 2010

1) Open Visual Studio, in New Project select SharePoint 2010 and then select an empty project. (Create an empty SharePoint project)

2) Add a new List or List based on selected content type. 

3) Open List template definition and change it to (List Template not list definition)
  
        Name="ListName"
        Type="115"        
        BaseType="1"  
        OnQuickLaunch="TRUE" 
        SecurityBits="11" 
        Sequence="120" 
        DisplayName="List Display Name" 
        Description="List Description" 
        Image="/_layouts/images/itfl.png"  
        DocumentTemplate="1000"/> 


4) Build the project and deploy it, it will create a form library in SharePoint with the name you specified above. 

No comments: