<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Spunkyvt's designated location</title>
	<atom:link href="http://spunkyvt.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://spunkyvt.wordpress.com</link>
	<description>I wish I could trade places with my cat</description>
	<lastBuildDate>Tue, 11 Oct 2011 18:46:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='spunkyvt.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Spunkyvt's designated location</title>
		<link>http://spunkyvt.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://spunkyvt.wordpress.com/osd.xml" title="Spunkyvt&#039;s designated location" />
	<atom:link rel='hub' href='http://spunkyvt.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Custom Column Sharepoint 2010 Calendar</title>
		<link>http://spunkyvt.wordpress.com/2011/10/11/custom-column-sharepoint-2010-calendar/</link>
		<comments>http://spunkyvt.wordpress.com/2011/10/11/custom-column-sharepoint-2010-calendar/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 18:46:18 +0000</pubDate>
		<dc:creator>spunkyvt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://spunkyvt.wordpress.com/?p=16</guid>
		<description><![CDATA[I had created a custom column (SPFieldMultiColumnValue).  Using the Fldtypes for both the xml and the xsl, for standard lists and library&#8217;s the display was spot on, but for a calendar display it would show the value of the multicolumn field separated by commas. After much searching and googling, nothing. To correct this. public class [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=16&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had created a custom column (SPFieldMultiColumnValue).  Using the Fldtypes for both the xml and the xsl, for standard lists and library&#8217;s the display was spot on, but for a calendar display it would show the value of the multicolumn field separated by commas. After much searching and googling, nothing.</p>
<p>To correct this.</p>
<p>public class CustomColumnField : SPFieldMultiColumn<br />
{</p>
<p>public override string GetFieldValueAsText(object value)<br />
{<br />
SPFieldMultiColumnValue mvc = new SPFieldMultiColumnValue(value.ToString());<br />
return mvc[0].ToString();<br />
}</p>
<p>}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spunkyvt.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spunkyvt.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spunkyvt.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spunkyvt.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/spunkyvt.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/spunkyvt.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/spunkyvt.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/spunkyvt.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spunkyvt.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spunkyvt.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spunkyvt.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spunkyvt.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spunkyvt.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spunkyvt.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=16&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://spunkyvt.wordpress.com/2011/10/11/custom-column-sharepoint-2010-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57a9c30dce5b1b917f21d6fd3aa44c61?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spunkyvt</media:title>
		</media:content>
	</item>
		<item>
		<title>Change Background of Combobox using a Trigger if IsEditable</title>
		<link>http://spunkyvt.wordpress.com/2008/11/05/change-background-of-combobox-using-a-trigger-if-iseditable/</link>
		<comments>http://spunkyvt.wordpress.com/2008/11/05/change-background-of-combobox-using-a-trigger-if-iseditable/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 14:27:41 +0000</pubDate>
		<dc:creator>spunkyvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[comboBox]]></category>
		<category><![CDATA[Trigger]]></category>

		<guid isPermaLink="false">http://spunkyvt.wordpress.com/?p=13</guid>
		<description><![CDATA[After many frustrations of googling and coding I finally found how to change the background of a combobox when triggering on IsFocused and the combobox is editable. When the combo is in edit mode it displays a regular textbox for it&#8217;s edit portion.  In the Style trigger section use a data trigger and bind to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=13&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After many frustrations of googling and coding I finally found how to change the background of a combobox when triggering on IsFocused and the combobox is editable. When the combo is in edit mode it displays a regular textbox for it&#8217;s edit portion.  In the Style trigger section use a data trigger and bind to the element PART_EditableTextBox.</p>
<p>&lt;Style.Triggers&gt;</p>
<p>&lt;DataTrigger Binding=&#8221;{Binding ElementName=<strong>PART_EditableTextBox</strong>,Path=IsFocused}&#8221; Value=&#8221;True&#8221;&gt;<br />
&lt;Setter Property=&#8221;Background&#8221; Value=&#8221;Yellow&#8221;/&gt;<br />
&lt;/DataTrigger&gt;<br />
&lt;/Style.Triggers&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spunkyvt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spunkyvt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spunkyvt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spunkyvt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/spunkyvt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/spunkyvt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/spunkyvt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/spunkyvt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spunkyvt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spunkyvt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spunkyvt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spunkyvt.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spunkyvt.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spunkyvt.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=13&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://spunkyvt.wordpress.com/2008/11/05/change-background-of-combobox-using-a-trigger-if-iseditable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57a9c30dce5b1b917f21d6fd3aa44c61?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spunkyvt</media:title>
		</media:content>
	</item>
		<item>
		<title>Change location secondary DataSource for InfoPath browser-based</title>
		<link>http://spunkyvt.wordpress.com/2008/05/13/change-location-secondary-datasource-for-infopath-browser-based/</link>
		<comments>http://spunkyvt.wordpress.com/2008/05/13/change-location-secondary-datasource-for-infopath-browser-based/#comments</comments>
		<pubDate>Tue, 13 May 2008 19:50:29 +0000</pubDate>
		<dc:creator>spunkyvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[DataSource]]></category>
		<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[SPList]]></category>
		<category><![CDATA[SPQuery]]></category>

		<guid isPermaLink="false">http://spunkyvt.wordpress.com/?p=12</guid>
		<description><![CDATA[The title is a little misleading, because we are not actually changing the datasource. In the FormEvents_Loading method put this code String titleName = e.InputParameters["XmlLocation"].Substring(e.InputParameters["XmlLocation"].LastIndexOf(&#8220;/&#8221;)+1); using (SPSite site = new SPSite(_baseURL)) { using (SPWeb web = site.OpenWeb()) { SPList ls = web.Lists[_FormName]; SPQuery query = new SPQuery(); query.Query = &#8220;&#60;Where&#62;&#60;Eq&#62;&#60;FieldRef Name=&#8217;Title&#8217;/&#62;&#60;Value Type=&#8217;Text&#8217;&#62;&#8221; + titleName + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=12&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The title is a little misleading, because we are not actually changing the datasource.</p>
<p>In the FormEvents_Loading method put this code</p>
<p><strong>String titleName = e.InputParameters["XmlLocation"].Substring(e.InputParameters["XmlLocation"].LastIndexOf(&#8220;/&#8221;)+1);</strong></p>
<p><strong>using (SPSite site = new SPSite(_baseURL))<br />
{</strong></p>
<p><strong>using (SPWeb web = site.OpenWeb())<br />
{<br />
SPList ls = web.Lists[_FormName];</strong></p>
<p><strong>SPQuery query = new SPQuery();<br />
query.Query = &#8220;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&#8217;Title&#8217;/&gt;&lt;Value Type=&#8217;Text&#8217;&gt;&#8221; + titleName + &#8220;&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&#8221;;</strong></p>
<p><strong>SPListItemCollection its = ls.GetItems(query);</strong></p>
<p><strong>string h = its[0]["ColumnName"].ToString() ;</strong></p>
<p><strong>}<br />
}</strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spunkyvt.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spunkyvt.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spunkyvt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spunkyvt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spunkyvt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spunkyvt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/spunkyvt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/spunkyvt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/spunkyvt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/spunkyvt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spunkyvt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spunkyvt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spunkyvt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spunkyvt.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spunkyvt.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spunkyvt.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=12&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://spunkyvt.wordpress.com/2008/05/13/change-location-secondary-datasource-for-infopath-browser-based/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57a9c30dce5b1b917f21d6fd3aa44c61?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spunkyvt</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Submit with Infopath browser</title>
		<link>http://spunkyvt.wordpress.com/2008/05/08/dynamic-submit-with-infopath-browser/</link>
		<comments>http://spunkyvt.wordpress.com/2008/05/08/dynamic-submit-with-infopath-browser/#comments</comments>
		<pubDate>Thu, 08 May 2008 21:43:23 +0000</pubDate>
		<dc:creator>spunkyvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[InfoPath]]></category>

		<guid isPermaLink="false">http://spunkyvt.wordpress.com/?p=11</guid>
		<description><![CDATA[Ever need to develop an infopath form, but deploy it to another machine and not go through the hassel of Microsofts tool or bringing each form up in infopath and changing location. First make a data connection and call it ChangeSubmit Place a button on the form. In the clicked event from code behind put [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=11&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever need to develop an infopath form, but deploy it to another machine and not go through the hassel of Microsofts tool or bringing each form up in infopath and changing location.</p>
<p>First make a data connection and call it ChangeSubmit</p>
<p>Place a button on the form.</p>
<p>In the clicked event from code behind put this code</p>
<p><strong>FileSubmitConnection submit = (FileSubmitConnection)this.DataConnections["ChangeSubmit</strong><strong>"];</strong></p>
<p><strong>submit.FolderUrl = &#8220;pathtoyourformlibrary&#8221;;</strong></p>
<p><strong>submit.Execute();</strong></p>
<p>You can make this much more dynamic, but I just wanted to show the simple version on how to switch this.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spunkyvt.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spunkyvt.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spunkyvt.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spunkyvt.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spunkyvt.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spunkyvt.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/spunkyvt.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/spunkyvt.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/spunkyvt.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/spunkyvt.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spunkyvt.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spunkyvt.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spunkyvt.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spunkyvt.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spunkyvt.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spunkyvt.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=11&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://spunkyvt.wordpress.com/2008/05/08/dynamic-submit-with-infopath-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57a9c30dce5b1b917f21d6fd3aa44c61?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spunkyvt</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamically Add to Drop-Down in Infopath using a Web Service</title>
		<link>http://spunkyvt.wordpress.com/2008/05/07/dynamically-add-to-drop-down-in-infopath-using-a-web-service/</link>
		<comments>http://spunkyvt.wordpress.com/2008/05/07/dynamically-add-to-drop-down-in-infopath-using-a-web-service/#comments</comments>
		<pubDate>Wed, 07 May 2008 18:58:56 +0000</pubDate>
		<dc:creator>spunkyvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[drop-down]]></category>
		<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://spunkyvt.wordpress.com/?p=8</guid>
		<description><![CDATA[OK. After banging my head about for hours now, I have finally found a solution. This is going to use the permissions built into Sharepoint. It will list out all the groups that have permissions to a form library. First you need to make an xml file. Create an xml file with this info in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=8&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>OK.  After banging my head about for hours now, I have finally found a solution. This is going to use the permissions built into Sharepoint. It will list out all the groups that have permissions to a form library.</p>
<p>First you need to make an xml file.</p>
<p>Create an xml file with this info in it. Name it Permiss.xml.</p>
<p><img src="/DOCUME~1/CRMATH~1/LOCALS~1/Temp/moz-screenshot.jpg" alt="" /></p>
<p><a href="http://spunkyvt.files.wordpress.com/2008/05/xmlfile1.png"><img class="alignnone size-full wp-image-10" src="http://spunkyvt.files.wordpress.com/2008/05/xmlfile1.png?w=700&#038;h=345" alt="" width="700" height="345" /></a></p>
<p>Drag a drop-down box onto the infopath form. Click on DataConnections under tools.  Click the add button. Create a new connection and set it to Receive Data. Click the Next and choose XML Document. Browse to the file location and choose the Permiss.xml file. Cick next and Make sure that Automatically retrieve data when form is opened is checked.</p>
<p>Right Click on the Drop-Down List Box properties. Click on the Look up values from an external data source. In the Data source drop down pick permiss.  Click on button beside Entries and choose the permissions node.  Click OK.  Next click button beside Value and choose MemberID.  Click OK.  Click the button beside Display name and choose GroupName.  Finally all done there.</p>
<p>Now onto the code behind.</p>
<p>Add a web reference to the <strong>http://localhost/_vti_bin/permissions.asmx</strong></p>
<p>Call it permission.</p>
<p>In the FormEvents_loading method add this code</p>
<p><strong>permissions.Permissions perm = new GFill.permissions.Permissions();</strong></p>
<p><strong>perm.Credentials = System.Net.CredentialCache.DefaultCredentials;<br />
</strong></p>
<p><strong>String FormName = &#8220;youLibrary&#8221;<br />
</strong></p>
<p><strong>XmlNode nod = perm.GetPermissionCollection(FormName, &#8220;List&#8221;);</strong></p>
<p><strong> XPathNavigator sitepermiss = DataSources["permiss"].CreateNavigator() ;<br />
XmlNamespaceManager umanager = new XmlNamespaceManager(sitepermiss.NameTable);<br />
umanager.AddNamespace(&#8220;ns1&#8243;, &#8220;http://schemas.microsoft.com/sharepoint/soap/directory/&#8221;);</strong></p>
<p><strong>XPathNavigator f1 = sitepermiss.SelectSingleNode(&#8220;//ns1:GetPermissionCollection/ns1:Permissions&#8221;, umanager);</strong></p>
<p><strong>XPathNavigator g = nod.CreateNavigator().SelectSingleNode(&#8220;//ns1:Permissions&#8221;, umanager);<br />
f1.ReplaceSelf(g); </strong></p>
<p>If all goes well this is all you should need in order to dynamically fill those drop-downs.  I have to vent for a second.  This is way harder than it should be.  Something this simple and trivial should not have been this complicated to implement. Kudos Microsoft. You win the Rube Goldberg award for the day. I hope this will save someone else numerous hours.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spunkyvt.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spunkyvt.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spunkyvt.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spunkyvt.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spunkyvt.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spunkyvt.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/spunkyvt.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/spunkyvt.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/spunkyvt.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/spunkyvt.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spunkyvt.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spunkyvt.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spunkyvt.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spunkyvt.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spunkyvt.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spunkyvt.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=8&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://spunkyvt.wordpress.com/2008/05/07/dynamically-add-to-drop-down-in-infopath-using-a-web-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57a9c30dce5b1b917f21d6fd3aa44c61?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spunkyvt</media:title>
		</media:content>

		<media:content url="/DOCUME~1/CRMATH~1/LOCALS~1/Temp/moz-screenshot.jpg" medium="image" />

		<media:content url="http://spunkyvt.files.wordpress.com/2008/05/xmlfile1.png" medium="image" />
	</item>
		<item>
		<title>Activity in WorkFlow with Sharepoint</title>
		<link>http://spunkyvt.wordpress.com/2008/05/06/activity-in-workflow-with-sharepoint/</link>
		<comments>http://spunkyvt.wordpress.com/2008/05/06/activity-in-workflow-with-sharepoint/#comments</comments>
		<pubDate>Tue, 06 May 2008 13:17:56 +0000</pubDate>
		<dc:creator>spunkyvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[.Action]]></category>
		<category><![CDATA[activity]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://spunkyvt.wordpress.com/?p=7</guid>
		<description><![CDATA[I am going to show you how to add an activity to a workflow, which will take a sharepoint list item and convert it to a dataset. I will be using vs 2005 with workflow developer starter kit for windows sharepoint services V3 installed Start a new project and under workflow pick the Workflow Activity [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=7&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am going to show you how to add an activity to a workflow, which will take a sharepoint list item and convert it to a dataset.</p>
<p>I will be using vs 2005 with workflow developer starter kit for windows sharepoint services V3 installed</p>
<p>Start a new project and under workflow pick the Workflow Activity Library</p>
<p>Add the Microsoft.SharePoint.dll</p>
<p>In order to use properties you have to use a special type of property called a DependencyProperty. These are used when you define the workflow parameters.</p>
<p>Add these DependencyProperties to class.</p>
<p><strong>public static DependencyProperty _ContextProperty = DependencyProperty.Register(&#8220;_Context&#8221;, typeof(WorkflowContext), typeof(Activity1));<br />
public static DependencyProperty ListItemProperty = DependencyProperty.Register(&#8220;ListItem&#8221;, typeof(int), typeof(Activity1));<br />
public static DependencyProperty FileSavePathProperty = DependencyProperty.Register(&#8220;FileSavePath&#8221;, typeof(string), typeof(Activity1));<br />
public static DependencyProperty ListIdProperty = DependencyProperty.Register(&#8220;ListId&#8221;, typeof(string), typeof(Activity1));</strong></p>
<p><strong>[Description("Cross-Site Actions")]<br />
[ValidationOption(ValidationOption.Required)]<br />
[Browsable(true)]<br />
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]<br />
public string FileSavePath<br />
{<br />
get<br />
{<br />
return ((string)(base.GetValue(Activity1.FileSavePathProperty)));<br />
}<br />
set<br />
{<br />
base.SetValue(Activity1.FileSavePathProperty, value);<br />
}<br />
}</strong></p>
<p><strong>[Description("Context")]<br />
[ValidationOption(ValidationOption.Required)]<br />
[Browsable(true)]<br />
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]<br />
public WorkflowContext _Context<br />
{<br />
get<br />
{<br />
return ((WorkflowContext)(base.GetValue(Activity1._ContextProperty)));<br />
}<br />
set<br />
{<br />
base.SetValue(Activity1._ContextProperty, value);<br />
}<br />
}</strong></p>
<p><strong>[Category("Cross-Site Actions"), Browsable(true)]<br />
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]<br />
[ValidationOption(ValidationOption.Required)]<br />
public string ListId<br />
{<br />
get<br />
{<br />
return ((string)<br />
(base.GetValue(Activity1.ListIdProperty )));<br />
}<br />
set<br />
{<br />
base.SetValue(Activity1.ListIdProperty, value);<br />
}<br />
}</strong></p>
<p><strong>[Category("Cross-Site Actions"), Browsable(true)]<br />
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]<br />
public int ListItem<br />
{<br />
get<br />
{<br />
return ((int)<br />
(base.GetValue(Activity1.ListItemProperty)));<br />
}<br />
set<br />
{<br />
base.SetValue(Activity1.ListItemProperty, value);<br />
}<br />
}</strong></p>
<p>In the Execute method as this</p>
<p><strong>protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)<br />
{<br />
try<br />
{<br />
using (SPSite mySite = new SPSite(this._Context.Web.Site.ID))<br />
{<br />
using (SPWeb web = mySite.AllWebs[this._Context.Web.ID])<br />
{<br />
Guid myG = new Guid(this.ListId);<br />
SPList list = web.Lists[myG];</strong></p>
<p><strong>SPListItem li = list.Items[this.ListItem-1];</strong></p>
<p><strong>DataTable dt = new DataTable(&#8220;Sharepoint&#8221;);</strong></p>
<p><strong>dt.Rows.Add(dt.NewRow());</strong></p>
<p><strong>foreach (SPField var in li.Fields)<br />
{<br />
string colName = var.InternalName;<br />
DataColumn dc = new DataColumn(colName);<br />
dt.Columns.Add(dc);<br />
DataRow dr = dt.Rows[0];<br />
dr[dc] = li[var.InternalName];<br />
}<br />
if (Directory.Exists(this.FileSavePath))<br />
{<br />
string dir;<br />
if (this.FileSavePath.EndsWith(&#8220;\\&#8221;))<br />
dir = this.FileSavePath;<br />
else<br />
dir = this.FileSavePath + &#8220;\\&#8221;;<br />
dt.WriteXml(dir + li.UniqueId.ToString()+ &#8220;.xml&#8221;  );<br />
}<br />
else<br />
{<br />
throw new Exception(&#8220;Missing Directory&#8221;);<br />
}<br />
}<br />
}<br />
}<br />
catch (Exception)<br />
{</strong></p>
<p><strong>throw;<br />
}<br />
return ActivityExecutionStatus.Closed;</strong></p>
<p><strong>}</strong></p>
<p>Now sign the assembly and put the compiled Dll int he GAC</p>
<p>This is at as far a code is concerned. Now to add it to sharepoint.</p>
<p>Next go the web.config file for your sharepoint site.</p>
<p><span style="font-size:x-small;"><span style="font-family:Verdana;font-size:x-small;">You add an entry to the &lt;System.Workflow.ComponentModel.WorkflowCompiler&gt; section.</span></span></p>
<p>similar to this</p>
<p><span style="font-size:x-small;"><span style="font-family:Verdana;font-size:x-small;"><span style="color:blue;">&lt;</span><span style="color:maroon;">authorizedType</span><span style="color:blue;"> </span><span style="color:red;">Assembly</span><span style="color:blue;">=</span><span>&#8220;<span style="color:blue;">ActivityLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8fd4b4c3a190a3c6</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">Namespace</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">ActivityLibrary1</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">TypeName</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">*</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">Authorized</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">True</span>&#8220;<span style="color:blue;"> /&gt;</span></span></span></span></p>
<p>The publickeytoken comes from when you installed it in the GAC.</p>
<p>Next find the .ACTIONS file in <span style="font-size:x-small;"><span style="font-family:Verdana;font-size:x-small;">C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\Workflow.</span></span></p>
<p>Add this xml node to the file between the &lt;Actions&gt;&lt;/Actions&gt; section.  There might already be others there so just put it at the end of the last one. Be sure that publickeytoken matches the one you have in the GAC.</p>
<p><strong>&lt;Action<br />
Name=&#8221;Write List item to the folder&#8221;<br />
ClassName=&#8221;ActivityLibrary1.Activity1&#8243;<br />
Assembly=&#8221;ActivityLibrary1, Version=1.0.0.0,<br />
Culture=neutral, PublicKeyToken=2d6bcfd54854da8d&#8221;<br />
AppliesTo=&#8221;all&#8221;<br />
Category=&#8221;Extras&#8221;&gt;<br />
&lt;RuleDesigner Sentence=&#8221;Context %1 SavePath %2&#8243;&gt;<br />
&lt;FieldBind<br />
Field=&#8221;ListId,ListItem&#8221;<br />
Text=&#8221;this&#8221;<br />
Id=&#8221;1&#8243;<br />
DesignerType=&#8221;ChooseDoclibItem&#8221; /&gt;<br />
&lt;FieldBind<br />
Field=&#8221;FileSavePath&#8221;<br />
Text=&#8221;Path&#8221;<br />
Id=&#8221;2&#8243;<br />
DesignerType=&#8221;Text&#8221; /&gt;<br />
&lt;/RuleDesigner&gt;<br />
&lt;Parameters&gt;<br />
&lt;Parameter<br />
Name=&#8221;__Context&#8221;<br />
Type=&#8221;Microsoft.SharePoint.WorkflowActions.WorkflowContext,<br />
Microsoft.SharePoint.WorkflowActions&#8221;<br />
Direction=&#8221;In&#8221;/&gt;<br />
&lt;Parameter<br />
Name=&#8221;ListId&#8221;<br />
Type=&#8221;System.String, mscorlib&#8221;<br />
Direction=&#8221;In&#8221; /&gt;<br />
&lt;Parameter<br />
Name=&#8221;ListItem&#8221;<br />
Type=&#8221;System.Int32, mscorlib&#8221;<br />
Direction=&#8221;In&#8221; /&gt;<br />
&lt;Parameter<br />
Name=&#8221;FileSavePath&#8221;<br />
Type=&#8221;System.String, mscorlib&#8221;<br />
Direction=&#8221;In&#8221; /&gt;<br />
&lt;/Parameters&gt;<br />
&lt;/Action&gt;<br />
</strong></p>
<p>You might need an iisreset here.  So at Start-Run just type iisreset.</p>
<p>To make life easy for you, use the Sharepoint Designer.</p>
<p>Point to you sharepoint site and under new add a new Workflow.</p>
<p>Give the workflow a name and pick wich list you want to attach it to and the start options you want for your workflow</p>
<p>Click next</p>
<p>Under actions go to more actions.  In the list you should find the &#8220;Write List Item to the Folder&#8221;.</p>
<p>Click the add</p>
<p>After this click the blue &#8220;this&#8221; and use current item. Then click the blue &#8220;Path&#8221; and type in the path to the folder where you will be saving you list items.</p>
<p>Your workflow is now installed and ready to go. Give it a GO!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spunkyvt.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spunkyvt.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spunkyvt.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spunkyvt.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spunkyvt.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spunkyvt.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/spunkyvt.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/spunkyvt.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/spunkyvt.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/spunkyvt.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spunkyvt.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spunkyvt.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spunkyvt.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spunkyvt.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spunkyvt.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spunkyvt.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=7&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://spunkyvt.wordpress.com/2008/05/06/activity-in-workflow-with-sharepoint/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57a9c30dce5b1b917f21d6fd3aa44c61?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spunkyvt</media:title>
		</media:content>
	</item>
		<item>
		<title>VLC and C#</title>
		<link>http://spunkyvt.wordpress.com/2008/04/21/vlc-and-c/</link>
		<comments>http://spunkyvt.wordpress.com/2008/04/21/vlc-and-c/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 17:14:01 +0000</pubDate>
		<dc:creator>spunkyvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[VLAN]]></category>
		<category><![CDATA[VLANCONTROL]]></category>
		<category><![CDATA[VLC]]></category>

		<guid isPermaLink="false">http://spunkyvt.wordpress.com/?p=6</guid>
		<description><![CDATA[I have found a cool way to embed media (dvd,mp3,mpeg,avi) into your apps. You will need to use VLC The greatest players out there. Also you will need to compile the library here Build the library and add reference in your project Place a picturebox or panel on the form and a button. Add this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=6&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have found a cool way to embed media (dvd,mp3,mpeg,avi) into your apps.</p>
<p>You will need to use <a href="http://www.videolan.org/vlc/">VLC</a> The greatest players out there.</p>
<p>Also you will need to compile the library <a href="http://wiki.videolan.org/.Net_Interface_to_VLC">here</a></p>
<p>Build the library and add reference in your project</p>
<p>Place a picturebox or panel on the form and a button.</p>
<p>Add this code to form</p>
<p style="text-align:left;"><strong>VLanControl.VlcUserControl vlc = new VLanControl.VlcUserControl();</strong></p>
<p style="text-align:left;">On the button click</p>
<p style="text-align:left;"><strong>vlc.Width = pictureBox1.Width;<br />
vlc.Height = pictureBox1.Height;<br />
vlc.Parent = pictureBox1;<br />
vlc.CreateControl();<br />
pictureBox1.Controls.Add(vlc);</strong></p>
<p style="text-align:left;"><strong>vlc.AddAndPlay(@&#8221;C:\media&#8221;,&#8221;");</strong></p>
<p style="text-align:center;">
<p style="text-align:left;">That is it!!!!</p>
<p style="text-align:left;">
<p style="text-align:left;">There are some options that you can set..but the act a little funny</p>
<p style="text-align:left;">Let&#8217;s say you wanted to add a marquee to the video.</p>
<p style="text-align:left;">Instead of using the vlc.AddAndPlay use this</p>
<p style="text-align:left;"><strong>vlc.ClearPlayList();<br />
string[] opts = {&#8220;sub-filter=marq&#8221; };<br />
vlc.AddToPlayList(@&#8221;C:\media&#8221;, &#8220;&#8221;, opts);</strong></p>
<p style="text-align:left;"><strong>vlc.SetConfigVariable(&#8220;marq-position&#8221;, &#8220;0&#8243;);<br />
vlc.SetConfigVariable(&#8220;marq-marquee&#8221;, &#8220;MY Marquee&#8221;);<br />
vlc.SetConfigVariable(&#8220;volume&#8221;, &#8220;0&#8243;);</p>
<p>vlc.Play();</strong></p>
<p style="text-align:left;">
<p style="text-align:left;">What is strange about this?? well if you use the SetConfigVariable to set the sub-filter=marq this will fail also if you put the setConfigVariable commands in the opts they will fail.  This was the only way i could get the desired behavior.</p>
<p style="text-align:left;">
<p style="text-align:left;">Alright!!!  What about skipping and moving and all that jazz.</p>
<p style="text-align:left;">
<p style="text-align:left;">OK!!! OK!! Hold on.</p>
<p style="text-align:left;">Put a timer and track bar on your form.</p>
<p style="text-align:left;">Put this in your button click also</p>
<p style="text-align:left;"><strong>while (vlc.IsPlaying == false)<br />
{<br />
Application.DoEvents();<br />
}<br />
</strong></p>
<p style="text-align:left;"><strong>trackBar1.Maximum = vlc.Length;<br />
trackBar1.Minimum = 0;<br />
timer1.Enabled = true;<br />
timer1.Start();</strong></p>
<p style="text-align:left;">You will need the while loop to make sure that the trackbar gets the right information from your vlc instance.</p>
<p style="text-align:left;">On the Tick event of the timer</p>
<p style="text-align:left;"><strong>try<br />
{<br />
if (vlc.IsPlaying)<br />
trackBar1.Value = vlc.Time;<br />
}<br />
catch (Exception ex)<br />
{<br />
}</strong></p>
<p style="text-align:left;">
<p style="text-align:left;">And in the TrackBar_Scroll Event</p>
<p style="text-align:left;"><strong>try<br />
{<br />
if (trackBar1.Value &gt; vlc.Time)<br />
{<br />
vlc.Shuttle((trackBar1.Value &#8211; vlc.Time));<br />
}<br />
else<br />
{<br />
vlc.Shuttle(-(vlc.Time &#8211; trackBar1.Value));<br />
}<br />
}<br />
catch<br />
{<br />
}</strong></p>
<p style="text-align:left;">
<p style="text-align:left;">That is all I have for now.  Enjoy!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spunkyvt.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spunkyvt.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spunkyvt.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spunkyvt.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spunkyvt.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spunkyvt.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/spunkyvt.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/spunkyvt.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/spunkyvt.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/spunkyvt.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spunkyvt.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spunkyvt.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spunkyvt.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spunkyvt.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spunkyvt.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spunkyvt.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=6&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://spunkyvt.wordpress.com/2008/04/21/vlc-and-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57a9c30dce5b1b917f21d6fd3aa44c61?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spunkyvt</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerPoint in it&#8217;s own window or Form w/o the annoying Flash</title>
		<link>http://spunkyvt.wordpress.com/2008/04/16/powerpoint-in-its-own-window-or-form-wo-the-annoying-flash/</link>
		<comments>http://spunkyvt.wordpress.com/2008/04/16/powerpoint-in-its-own-window-or-form-wo-the-annoying-flash/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 18:49:44 +0000</pubDate>
		<dc:creator>spunkyvt</dc:creator>
				<category><![CDATA[PowerPoint]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[dsoFramer]]></category>
		<category><![CDATA[zero Flash]]></category>

		<guid isPermaLink="false">http://spunkyvt.wordpress.com/?p=3</guid>
		<description><![CDATA[After much searching and digging. I have finally found a solution. First you must download the dsoFramer active x control from microsoft. After that we can code. Place the Framer on the Form. Add a reference to the InteropServices. ie. using System.Runtime.InteropServices; Add this DllImport [DllImport("user32.dll", EntryPoint = "LockWindowUpdate", SetLastError = true, ExactSpelling = true, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=3&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After much searching and digging. I have finally found a solution.  First you must download the dsoFramer active x control from <a href="http://support.microsoft.com/kb/311765">microsoft</a>.  After that we can code.</p>
<p>Place the Framer on the Form.</p>
<p>Add a reference to the InteropServices. ie.</p>
<p style="text-align:center;"><strong>using System.Runtime.InteropServices;</strong></p>
<p>Add this DllImport</p>
<p style="text-align:center;"><strong>[DllImport("user32.dll", EntryPoint = "LockWindowUpdate", SetLastError = true,<br />
ExactSpelling = true, CharSet = CharSet.Auto,<br />
CallingConvention = CallingConvention.StdCall)]<br />
private static extern long LockWindow(long Handle);</strong></p>
<p>Add a button to the Form</p>
<p>and put this code in button click</p>
<p style="text-align:center;"><strong>Framer.FrameHookPolicy = DSOFramer.dsoFrameHookPolicy.dsoSetOnFirstOpen;</strong></p>
<p style="text-align:center;"><strong>LockWindow(Framer.Handle.ToInt32());<br />
Framer.Open(@&#8221;c:\Presentation1.ppt&#8221;);</strong></p>
<p style="text-align:center;"><strong>Framer.Activate();<br />
SendKeys.Send(&#8220;{F5}&#8221;);<br />
Framer.BackColor = Color.Black;<br />
LockWindow(IntPtr.Zero.ToInt32());</strong></p>
<p>You now have a functioning slideshow inside of your form.</p>
<p>If you need control over the slideshow?????????</p>
<p>Well add a reference to you favorite Powerpoint Dll</p>
<p style="text-align:center;">add <strong>using PowerPoint = Microsoft.Office.Interop.PowerPoint;</strong></p>
<p>Define a variable</p>
<p style="text-align:center;"><strong>PowerPoint.Presentation pres;</strong></p>
<p>In the button click add this</p>
<p style="text-align:center;"><strong>pres = (PowerPoint.Presentation)Framer.ActiveDocument;</strong></p>
<p>It&#8217;s crazy but you would have to pay 999 from EDraw Office Viewer Component for this same functionality.</p>
<p>MEOUCH!!!!!!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/spunkyvt.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/spunkyvt.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/spunkyvt.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/spunkyvt.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/spunkyvt.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/spunkyvt.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/spunkyvt.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/spunkyvt.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/spunkyvt.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/spunkyvt.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/spunkyvt.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/spunkyvt.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/spunkyvt.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/spunkyvt.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/spunkyvt.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/spunkyvt.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=spunkyvt.wordpress.com&amp;blog=3501729&amp;post=3&amp;subd=spunkyvt&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://spunkyvt.wordpress.com/2008/04/16/powerpoint-in-its-own-window-or-form-wo-the-annoying-flash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57a9c30dce5b1b917f21d6fd3aa44c61?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spunkyvt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
