Solved

VB Code to create a SharePoint Website

Posted on 2013-10-30
2
298 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now