<?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: Outlook Addressbook</title><link>https://www.infopathdev.com:443/forums/thread/14134.aspx</link><pubDate>Mon, 11 Sep 2006 10:28:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14134</guid><dc:creator>praveen.prabhakaran</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14134.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14134</wfw:commentRss><description>Hi jeremyj,&lt;br /&gt;       I have used your code but its giving Security warning..&lt;br /&gt;</description></item><item><title>Re: Outlook Addressbook</title><link>https://www.infopathdev.com:443/forums/thread/14133.aspx</link><pubDate>Wed, 21 Dec 2005 17:51:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14133</guid><dc:creator>jeremyj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14133</wfw:commentRss><description>This is how I did it using VB.Net. Note that you must have the CDO library installed with MS Office to do this. This returns a string of recipients delimited by a ; and you can do with them whatever you want.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Public Function AddRecipientsViaCDO()&lt;br /&gt;    Const cdoE_USER_CANCEL = &amp;H80040113&lt;br /&gt;    Dim objSession As MAPI.Session&lt;br /&gt;    Dim colCDORecips&lt;br /&gt;    Dim Recipstring&lt;br /&gt;    Dim objCDORecip&lt;br /&gt;    Dim objRecip&lt;br /&gt;    ' Start CDO session&lt;br /&gt;    objSession = CreateObject("MAPI.Session")&lt;br /&gt;    objSession.Logon(, , False, False)&lt;br /&gt;    On Error Resume Next&lt;br /&gt;    ' show address book&lt;br /&gt;    colCDORecips = objSession.AddressBook(, _&lt;br /&gt;                       "Pick Names", , , 1, _&lt;br /&gt;                       "Recipients")&lt;br /&gt;    If Err.Number = 0 Then&lt;br /&gt;        For Each objCDORecip In colCDORecips&lt;br /&gt;            If Recipstring = "" Then&lt;br /&gt;                Recipstring = objCDORecip.AddressEntry.Name&lt;br /&gt;            Else Recipstring = Recipstring &amp; ";" &amp; objCDORecip.AddressEntry.Name&lt;br /&gt;            End If&lt;br /&gt;            If Err.Number = 287 Then&lt;br /&gt;                ' security block triggered&lt;br /&gt;                MsgBox("Outlook cannot add " &amp; _&lt;br /&gt;                       "recipients, because " &amp; _&lt;br /&gt;                       "you clicked No on the " &amp; _&lt;br /&gt;                       "e-mail address access " &amp; _&lt;br /&gt;                       "dialog. You need to try " &amp; _&lt;br /&gt;                       "again and click Yes " &amp; _&lt;br /&gt;                       "this time.", , _&lt;br /&gt;                       "E-mail Address Access")&lt;br /&gt;                Exit For&lt;br /&gt;            End If&lt;br /&gt;        Next&lt;br /&gt;    ElseIf Err.Number = cdoE_USER_CANCEL Then&lt;br /&gt;        MsgBox("You must select a recipient")&lt;br /&gt;        AddRecipientsViaCDO()&lt;br /&gt;    End If&lt;br /&gt;    On Error GoTo 0&lt;br /&gt;    AddRecipientsViaCDO = Recipstring&lt;br /&gt;End Function   &lt;/pre&gt;</description></item><item><title>Outlook Addressbook</title><link>https://www.infopathdev.com:443/forums/thread/12718.aspx</link><pubDate>Wed, 21 Dec 2005 13:30:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12718</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12718.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12718</wfw:commentRss><description>Hi all,&lt;br /&gt;In my Visual Studio .NET Infopath project i need to open the Outlook Addressbook to make the user insert an email address. Can you give me some ideas to open che AddressBook and get the address selected?&lt;br /&gt;&lt;br /&gt;Thank u.</description></item></channel></rss>