Solved

VB Code to create a SharePoint Website

Posted on 2013-10-30
2
302 Views
Last Modified: 2013-10-31
I am looking to see if there is any way to create a Web site on the SharePoint Server using an existing template using VB in my app from a Client Machine (meaning I cannot use SharePoint.dll on the client)

Much appreciated if there is.
0
Comment
Question by:BKennedy2008
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39612833
Hi,
if you are talking about a site (in code SPWeb) then there is an excellent sample in the MSDN documentation:
http://msdn.microsoft.com/en-us/library/office/ee537538(v=office.14).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

To get all existing templates in your farm, please run the Powershell script from here:
http://blogs.technet.com/b/praveenh/archive/2013/04/04/get-a-list-of-web-templates-and-ids-in-a-sharepoint-site.aspx

This displays all web templates with its ids.

HTH
Rainer
0
 

Author Closing Comment

by:BKennedy2008
ID: 39614704
those 2 documents did the trick...Awesome thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question