SharePoint 2007 - How to create a site template programmatically - c#

In my SharePoint 2007 project I have to use 3 site templates. Using these templates I create new sites programmatically. I also want to create the templates programmatically.
Is that possible?
If yes, I guess I have to use a SPSite object for creation.
What should I do exactly?

You can use the SPWeb.SaveAsTemplate method to save a SharePoint site as a site template solution in the Site Template Gallery.

Related

Installation Solution Sharepoint Online

I see lot of solution c# for Sharepoint but i have sharepoint online 2013 with microsoft server.
How can i install solution to my sharepoint online ?
For example: https://code.msdn.microsoft.com/Convert-from-HTML-to-PDF-09ce2a1d#content
Normally I use jquery for Sharepoint but i need convert Htlm to pdf and save this to Document Library.
For Information : I use visual studio to develop xamarin applcation and plumsail forms designer to develop sharepoint forms.
Can you help me ?
Thanks.
please explain what kind of Solution it is. You cant install a custom Solution with server side code in sharepoint Online.
You might use a Sharepoint Add in. If you need Server side code you can develop a provider hosted app instead.
Ok, so what you need is a Sharepoint Add In.
You are in the good road looking at some JavaScript solution. Keep looking for a suitable one.

Custom search webpart in sharepoint 2010

I wish to create a custom search webpart using visual studio 2010 using c#. The search must be able to search for all users, document libraries, list, etc in my sharepoint and display the results. How should I go about creating it. I searched various sites, and I am unable to find a good source for creating a custom web part that I can deploy onto my sharepoint 2010.
Please assist. thanks.
To develop a custom webpart for search, You can follow the post here :
http://extreme-sharepoint.com/2011/10/28/sharepoint-keywordquery/

How to create a workflow app on Sharepoint

I'm looking to create a workflow app on Sharepoint. Basically at the top level there's a list of projects. When you click on a project, a list of states is displayed (dev/qa/staging/prod) etc...when a developer finishes their task, they will change the state to QA, and the QA team needs to get a notification.
Is this possible to accomplish in Sharepoint 2007 without any custom webparts? If not, what's the best way to approach this?
Thanks.
SharePoint 2007 supports creation of workflows out of the box MOSS 2007 adds more features on top of basic functionality provided and 2010 versions provide more inprovments.
Check out http://msdn.microsoft.com/en-us/library/bb386168(v=VS.90).aspx or http://msdn.microsoft.com/en-us/library/bb386211.aspx to get statred.
Search for "SharePoint workflow" on your favorite search engine for more information.
I was able to do what I wanted to do using SharePoint Designer which is a free download.

How do I create a custom web part from a custom list in sharepoint 2007

I want to create a custom web part in SharePoint 2007 that allows me to take items from an existing custom list (i.e. Title, Hyperlink, Description and photo) and then render it in a format of my choice. How can I do this using C# asp.net and a web part?
you can use sharepoint object model to achieve the same SPList class will provide you all informations you need refer the attached link. You can use also use DVWP for the same

Copying Sharepoint "list" from one Sharepoint Server (2007) to Another Server(2010) using c#

I want to programatically copy List of One Sharepoint (2007) to another Sharepoint(2010).
Using Sharepoint web services.(C#)
How should i proceeed?
Regards,
Jene
Please see: copy list items from one list to another in sharepoint
See the link bellow it may help you
http://office.microsoft.com/en-us/sharepoint-server-help/copy-or-move-a-list-by-using-a-list-template-HA101782479.aspx

Categories