<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SharePoint @ Big Scholar &#187; C#</title>
	<atom:link href="http://www.bigscholar.com/category/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bigscholar.com</link>
	<description>Developing, Configuring and Designing in SharePoint</description>
	<lastBuildDate>Thu, 15 Jul 2010 01:12:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Visual Studio 2008 developed Custom Outlook Add-in not being called</title>
		<link>http://www.bigscholar.com/2009/12/11/visual-studio-2008-developed-custom-outlook-add-in-not-being-called/</link>
		<comments>http://www.bigscholar.com/2009/12/11/visual-studio-2008-developed-custom-outlook-add-in-not-being-called/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 01:44:57 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft Outlook]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=148</guid>
		<description><![CDATA[I found that when I created a custom outlook add-in to run on the Send event, that it doesn't run when I deploy it on another machine (works fine on my own). After much research, I found that a requirement on the other machine is not included in the deployment files. We needed Extensibility.dll to [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/12/11/visual-studio-2008-developed-custom-outlook-add-in-not-being-called/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a custom add-in for Microsoft Oulook 2003 on Send event (or start or &#8230;)</title>
		<link>http://www.bigscholar.com/2009/12/11/creating-a-custom-add-in-for-microsoft-oulook-2003-on-send-event-or-start-or/</link>
		<comments>http://www.bigscholar.com/2009/12/11/creating-a-custom-add-in-for-microsoft-oulook-2003-on-send-event-or-start-or/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 01:32:10 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft Outlook]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=145</guid>
		<description><![CDATA[In Visual Studio, create a new Project &#62; Other Project Types &#62; Extensibility &#62; Shared Add-in and select the application or applications you are writing the add-in for. In my case, the add in is written for Outlook, so I unchecked everything and selected Outlook only. Hit next, give it a name and description. Then [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/12/11/creating-a-custom-add-in-for-microsoft-oulook-2003-on-send-event-or-start-or/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uploading a file into a SharePoint document library with C# code</title>
		<link>http://www.bigscholar.com/2009/09/17/uploading-a-file-into-a-sharepoint-document-library-with-c-code/</link>
		<comments>http://www.bigscholar.com/2009/09/17/uploading-a-file-into-a-sharepoint-document-library-with-c-code/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 01:31:18 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[File Manipulation]]></category>
		<category><![CDATA[SharePoint Document Library]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=138</guid>
		<description><![CDATA[Here's a small snippet of code to upload a file from the filesystem into a SharePoint document library:     Stream fStream = File.OpenRead("C:\\Temp\\Filename.pdf");     byte[] contents = new byte[fStream.Length];     fStream.Read(contents, 0, (int)fStream.Length);     fStream.Close();     SPList list = web.Lists[DocumentLibraryListName];     Hashtable properties = new Hashtable();     properties.Add("Title", "This is the title");     properties.Add("Other_x0020_Properties", "Some [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/09/17/uploading-a-file-into-a-sharepoint-document-library-with-c-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using C# to update windows registry</title>
		<link>http://www.bigscholar.com/2009/09/14/using-c-to-update-windows-registry/</link>
		<comments>http://www.bigscholar.com/2009/09/14/using-c-to-update-windows-registry/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 00:29:08 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Windows Registry]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=134</guid>
		<description><![CDATA[Here's the code to update the registry: string strPath = "Software\\Path\\To\\Registry\\Location"; RegistryKey regKeyAppRoot = Registry.CurrentUser.OpenSubKey(strPath, true); regKeyAppRoot.SetValue("Key1", "Value1"); regKeyAppRoot.SetValue("Key2", "Value2"); regKeyAppRoot.Close(); If the key doesn't exist, then you will get a null exception error: "System.NullReferenceException: Object reference not set to an instance of an object." This just means that you have to create the key before [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/09/14/using-c-to-update-windows-registry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding watermark to existing PDF files using iTextSharp</title>
		<link>http://www.bigscholar.com/2009/08/25/adding-watermark-to-existing-pdf-files-using-itextsharp/</link>
		<comments>http://www.bigscholar.com/2009/08/25/adding-watermark-to-existing-pdf-files-using-itextsharp/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 00:33:39 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[File Manipulation]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=130</guid>
		<description><![CDATA[This code will take a file as an input from the file system and add a watermark to that file.     string FileLocation = "c:\\Temp\\SomeFile.pdf";     string WatermarkLocation = "c:\\Temp\\watermark.gif";     Document document = new Document();     PdfReader pdfReader = new PdfReader(FileLocation);     PdfStamper stamp = new PdfStamper(pdfReader, new FileStream(FileLocation.Replace(".pdf","[temp][file].pdf"), FileMode.Create));     iTextSharp.text.Image img = [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/08/25/adding-watermark-to-existing-pdf-files-using-itextsharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downloading files from a SharePoint document library to file system</title>
		<link>http://www.bigscholar.com/2009/07/24/downloading-files-from-a-sharepoint-document-library-to-file-system/</link>
		<comments>http://www.bigscholar.com/2009/07/24/downloading-files-from-a-sharepoint-document-library-to-file-system/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 22:43:53 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[File Manipulation]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=127</guid>
		<description><![CDATA[Here's the code to download files of a certain type (in the example, I set it to find documents in the list with the .doc extension) from a document library to your hard drive.     SPWeb mySite = SPContext.Current.Web;     mySite.AllowUnsafeUpdates = true;     SPList oList = mySite.Lists[&#60;ListName&#62;];     SPQuery oQuery = new SPQuery();     oQuery.Query [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/07/24/downloading-files-from-a-sharepoint-document-library-to-file-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorted List with multiple DateTime keys</title>
		<link>http://www.bigscholar.com/2009/05/01/sorted-list-with-multiple-datetime-keys/</link>
		<comments>http://www.bigscholar.com/2009/05/01/sorted-list-with-multiple-datetime-keys/#comments</comments>
		<pubDate>Fri, 01 May 2009 04:51:38 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[SortedList]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=110</guid>
		<description><![CDATA[What I needed to do was to sort a list of dates and corresponding names in order of date. Problem was that sometimes the dates duplicate and as a result, a standard SortedList would crash (since keys need to be unique). Anyway, here's a workaround to that problem. We create a new class for the [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/05/01/sorted-list-with-multiple-datetime-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the next Monday date (and the one after etc)</title>
		<link>http://www.bigscholar.com/2009/04/20/getting-the-next-monday-date-and-the-one-after-etc/</link>
		<comments>http://www.bigscholar.com/2009/04/20/getting-the-next-monday-date-and-the-one-after-etc/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 02:13:50 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[DateTime]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=106</guid>
		<description><![CDATA[Here's a little function that I wrote to return you the Monday's date for this week, next week, etc... GetNextWeekDates(DayOfWeek.Monday, 0); Change DayOfWeek.Monday to any day of the week and it will return you the next date on that particular day. The integer represents which date you want to return. 0 means that you want [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/04/20/getting-the-next-monday-date-and-the-one-after-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Folder Contents from a URL string</title>
		<link>http://www.bigscholar.com/2009/04/03/getting-folder-contents-from-a-url-string/</link>
		<comments>http://www.bigscholar.com/2009/04/03/getting-folder-contents-from-a-url-string/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 00:21:31 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[SharePoint Web Parts]]></category>
		<category><![CDATA[SPDocumentLibrary]]></category>
		<category><![CDATA[SPFile]]></category>
		<category><![CDATA[SPFolder]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=100</guid>
		<description><![CDATA[First thing to clear up is this... a document library is not a folder and a folder is not a document library. A folder resides in a document library and the SPFolder class doesn't have the same methods as the SPDocumentLibrary class (unfortunately). For example, you can get the last modified date of any file [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/04/03/getting-folder-contents-from-a-url-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Document Library name from URL string</title>
		<link>http://www.bigscholar.com/2009/04/03/getting-document-library-name-from-url-string/</link>
		<comments>http://www.bigscholar.com/2009/04/03/getting-document-library-name-from-url-string/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 00:05:04 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[SharePoint Web Parts]]></category>
		<category><![CDATA[SPDocumentLibrary]]></category>

		<guid isPermaLink="false">http://www.bigscholar.com/?p=98</guid>
		<description><![CDATA[Here's what was happening. I needed to extract the document library name from an intranet URL that a user enters. So they would enter something like this as the URL: http://intranet/site/subsite/DocLib1/Forms/AllItems.aspx and from there I need to extract DocLib1 as SPDocumentLibrary. Problem here is that no matter the depth, I still need to find the [...]]]></description>
		<wfw:commentRss>http://www.bigscholar.com/2009/04/03/getting-document-library-name-from-url-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
