<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath using Windows User's name</title><link>https://www.infopathdev.com:443/forums/thread/97258.aspx</link><pubDate>Thu, 01 May 2014 18:42:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97258</guid><dc:creator>james28</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97258.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=97258</wfw:commentRss><description>rcranney,

Thank you again for the reply and for the clarification. I am still some what of a novice, so I do not understand exactly where to begin.


Am I putting this code in the function of a text box, the &amp;quot;code editor&amp;quot;, or something else completely.



Any additional steps or guidance would be greatly appreciated. 


Thanks again</description></item><item><title>Re: Infopath using Windows User's name</title><link>https://www.infopathdev.com:443/forums/thread/97255.aspx</link><pubDate>Thu, 01 May 2014 18:11:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97255</guid><dc:creator>rcranney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=97255</wfw:commentRss><description>I edited my last post, fixed the HTML tags and added in comments..</description></item><item><title>Re: Infopath using Windows User's name</title><link>https://www.infopathdev.com:443/forums/thread/97233.aspx</link><pubDate>Thu, 01 May 2014 02:31:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97233</guid><dc:creator>james28</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=97233</wfw:commentRss><description>rcranney,


Thank you again for the reply. Unfortunately, I do not exactly understand. What exactly do I do with that code?

I think what you were trying to post was cut off. You said you found the code &amp;quot;here&amp;quot;, but there is no link or anything.</description></item><item><title>Re: Infopath using Windows User's name</title><link>https://www.infopathdev.com:443/forums/thread/97232.aspx</link><pubDate>Thu, 01 May 2014 01:09:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97232</guid><dc:creator>rcranney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97232.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=97232</wfw:commentRss><description>&lt;p&gt;Give this a try... 
&lt;ul&gt;
&lt;li&gt;Add &amp;#39;using System.DirectoryServices.AccountManagement;&amp;#39;&lt;/li&gt;
&lt;li&gt;Add Reference to System.DirectoryServices.AccountManagement&lt;/li&gt;
&lt;/ul&gt;
&lt;/p&gt;
&lt;p&gt;
THEN 
&lt;/p&gt;
&lt;p&gt;
&lt;font color="green"&gt;// Create UserPrinciple Object and set it to the current USER... &lt;/font&gt;&lt;br /&gt;
UserPrincipal userPrincipal = UserPrincipal.Current; &lt;br /&gt;
&lt;font color="green"&gt;// Set name variable to the DisplayName of current user. &lt;/font&gt;&lt;br /&gt;
String name = userPrincipal.DisplayName;&lt;br /&gt;
&lt;font color="green"&gt;// If President Obama was the current user, name would have a string value of &amp;quot;Obama, Barrack&amp;quot;&lt;/font&gt;
&lt;/p&gt;            
&lt;p&gt;
Found the code &lt;a href="http://stackoverflow.com/questions/3471635/get-first-name-last-name-of-logedin-windows-user"&gt;here&lt;/a&gt;

&lt;/p&gt;</description></item><item><title>Re: Infopath using Windows User's name</title><link>https://www.infopathdev.com:443/forums/thread/97230.aspx</link><pubDate>Wed, 30 Apr 2014 23:55:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97230</guid><dc:creator>james28</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97230.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=97230</wfw:commentRss><description>rcranney,


Thank you for your reply!

No, there will be no sharepoint involvement. Everything is stored in an Access database on the local network.</description></item><item><title>Re: Infopath using Windows User's name</title><link>https://www.infopathdev.com:443/forums/thread/97229.aspx</link><pubDate>Wed, 30 Apr 2014 23:40:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97229</guid><dc:creator>rcranney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=97229</wfw:commentRss><description>Will the form be published to a SharePoint site?</description></item><item><title>Infopath using Windows User's name</title><link>https://www.infopathdev.com:443/forums/thread/97227.aspx</link><pubDate>Wed, 30 Apr 2014 21:35:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97227</guid><dc:creator>james28</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97227.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=97227</wfw:commentRss><description>&lt;p&gt;Hello all!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;In Windows 7 and Infopath 2010, I am trying to pull the user&amp;#39;s name into infopath. I was able to find the function that pulls the logged in users log in username, which is great, but I also want to be able to pull the actual person&amp;#39;s name that is associated with the user account. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The name I am referring to is visible in Windows 7 on the start menu. I found this image online showing what I mean. You can ignore the stuff in the background of the image, I am only interested in the name. In the case of this image, &amp;quot;Andy Walker&amp;quot;.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;http://docs.oracle.com/cd/E36500_01/E36502/html/images/win7-desktop-web.png &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Does anyone have any idea how to pull that name into infopath?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you very much for any suggestions that you may have!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>