-
by
Mark Jones
| Apr 06, 2012
Quite often when developing code for DocRead we need to be able to discover what versions of SharePoint are on installed in the target platform. So being the kind souls we are - we have decided to share this helper library. The class is a singleton, so only once instance can be used and is cached after the first hit - so there no perf hits. We have added LOTS of boolean's to make it really easy to find out if a product SKU is installed.
Full story
-
by
Mark Jones
| Dec 29, 2011
This SharePoint code example illustrates how to develop a helper method to return an SPFile based on a Web, folder and file name.
Full story
-
by
Mark Jones
| Dec 27, 2011
If your SharePoint farm has been configured to use an SMTP server, then it is possible to send an email in code using the SPUtility class. The c# code below illustrates how to send a mail and return an XML string outlining what was sent for logging purposes :
Full story
-
by
Mark Jones
| Dec 27, 2011
Once a solution has been added to SharePoint, then there's no apparent way to download it. Using the SharePoint object model we can easily download a wsp using the 'SaveAs' method.
The C# code below illustrates how to download all of the solutions in the farm with just a few lines
Full story
-
by
Mark Jones
| Dec 27, 2011
If you have ever tried to delete a web either in code, or via the SharePoint GUI, then you will note that isn't possible if the web has one or more child webs. (or grandchildren). To delete a web, you must first delete it's subwebs.
Full story
-
by
Mark Jones
| Dec 09, 2011
The following code sample illustrates how to associate a SharePoint Workflow to a list based on the workflow name. This is very useful if you need to do this as part of an automated build process.
Full story
-
by
Mark Jones
| Dec 09, 2011
This code sample illustrates how to add an existing SharePoint site column (SPField) to a SharePoint list (SPList).
Full story