<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : selecting default data provider</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : selecting default data provider]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:59:14 +0000</pubDate>
  <lastBuildDate>Mon, 09 Oct 2006 23:02:14 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=4893</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[selecting default data provider :  First Add a Reference to Microsoft...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=16422&amp;title=selecting-default-data-provider#16422</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2404">nariofox</a><br /><strong>Subject:</strong> 4893<br /><strong>Posted:</strong> 09 October 2006 at 11:02pm<br /><br />First Add a Reference to Microsoft CDO 1.21 (Collobaration Data Object)<br><br>Use the following code<br><br>private sub Form_Load()<br><br>&nbsp;&nbsp;&nbsp; Dim objSession As MAPI.Session <br>&nbsp;&nbsp;&nbsp; Dim MAPISession As Outlook.NameSpace<br>&nbsp;&nbsp;&nbsp; Set objSession = CreateObject("MAPI.Session")<br>&nbsp;&nbsp;&nbsp; Set MAPISession = Application.Session&nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp; If Not MAPISession Is Nothing Then<br>&nbsp;&nbsp;&nbsp; MAPISession.Logon , , True, False<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; OpenProvider cjCalendarData_MAPI, "Provider=MAPI"<br><br>end sub<br><br>Public Sub OpenProvider(ByVal eDataProviderType As CodeJockCalendarDataType, ByVal strConnectionString As String)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.SetDataProvider strConnectionString<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not CalendarControl.DataProvider.Open Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.DataProvider.Create<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.Populate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<br>End Sub<br><br><br>]]>
   </description>
   <pubDate>Mon, 09 Oct 2006 23:02:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=16422&amp;title=selecting-default-data-provider#16422</guid>
  </item> 
  <item>
   <title><![CDATA[selecting default data provider : There was no answer because for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15390&amp;title=selecting-default-data-provider#15390</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4893<br /><strong>Posted:</strong> 31 August 2006 at 4:55pm<br /><br />There was no answer because for now this is not possible... <br><br>This "Choose Profile" dialog is shown by MAPI itself, and this "set default" button never worked there.<br><br>Dialog will not be shown if only a MAPI session is already open, for example when Outlook is opened.<br><br>For future will add a possibility to specify a name of the profile for this dialog, something like "Provider=MAPI;ProfileName=Somename;"<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 16:55:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15390&amp;title=selecting-default-data-provider#15390</guid>
  </item> 
  <item>
   <title><![CDATA[selecting default data provider :    sserge wrote:To open MAPI...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15293&amp;title=selecting-default-data-provider#15293</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2283">timcpa</a><br /><strong>Subject:</strong> 4893<br /><strong>Posted:</strong> 28 August 2006 at 8:41pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by sserge" alt="Originally posted by sserge" style="vertical-align: text-bottom;" /> <strong>sserge wrote:</strong><br /><br />To open MAPI data provider it is enough on form loading setup it in a following way: <br>CalendarControl.SetDataProvider "Provider=MAPI;"<br><br>And open it:<br>CalendarControl.DataProvider.Open<br><br>There should not be any errors when using it. It would be better if you submit your crash report into support area http://www.codejock.com/support/ with as much details as possible.<br><br>--<br>Regards,<br>Serge<br></td></tr></table><br><br>That works fine, but would like to not be prompted for the "ChooseProfile".&nbsp; Tried setting the default option in the dialog, but thisdoes nothing in regards to setting as the default profile.<br><br>Thanks in advance.<br><br>]]>
   </description>
   <pubDate>Mon, 28 Aug 2006 20:41:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15293&amp;title=selecting-default-data-provider#15293</guid>
  </item> 
  <item>
   <title><![CDATA[selecting default data provider : any answer for the last post? ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15292&amp;title=selecting-default-data-provider#15292</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2283">timcpa</a><br /><strong>Subject:</strong> 4893<br /><strong>Posted:</strong> 28 August 2006 at 8:22pm<br /><br />any answer for the last post?]]>
   </description>
   <pubDate>Mon, 28 Aug 2006 20:22:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15292&amp;title=selecting-default-data-provider#15292</guid>
  </item> 
  <item>
   <title><![CDATA[selecting default data provider : That works fine, but would like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15253&amp;title=selecting-default-data-provider#15253</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2283">timcpa</a><br /><strong>Subject:</strong> 4893<br /><strong>Posted:</strong> 27 August 2006 at 8:30pm<br /><br />That works fine, but would like to not be prompted for the "Choose Profile".&nbsp; Tried setting the default option in the dialog, but this does nothing in regards to setting as the default profile.<br><br>Thanks in advance.<br><br>]]>
   </description>
   <pubDate>Sun, 27 Aug 2006 20:30:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15253&amp;title=selecting-default-data-provider#15253</guid>
  </item> 
  <item>
   <title><![CDATA[selecting default data provider : To open MAPI data provider it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15248&amp;title=selecting-default-data-provider#15248</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4893<br /><strong>Posted:</strong> 27 August 2006 at 3:24pm<br /><br />To open MAPI data provider it is enough on form loading setup it in a following way: <br>CalendarControl.SetDataProvider "Provider=MAPI;"<br><br>And open it:<br>CalendarControl.DataProvider.Open<br><br>There should not be any errors when using it. It would be better if you submit your crash report into support area http://www.codejock.com/support/ with as much details as possible.<br><br>--<br>Regards,<br>Serge<br>]]>
   </description>
   <pubDate>Sun, 27 Aug 2006 15:24:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15248&amp;title=selecting-default-data-provider#15248</guid>
  </item> 
  <item>
   <title><![CDATA[selecting default data provider : Where in the code can the default...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15246&amp;title=selecting-default-data-provider#15246</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2283">timcpa</a><br /><strong>Subject:</strong> 4893<br /><strong>Posted:</strong> 27 August 2006 at 1:19pm<br /><br />Where in the code can the default data provider be set upon running the sample?&nbsp; I want to default to MAPI outlook, so this is the data source when running the sample.<br><br>Whenever MAPI is selected in the sample, it causes an error when the program stops running in VB and even after the program is compiled upon exiting the sample and error is displayed.&nbsp; Is there a fix that is causing this system error&gt;<br>]]>
   </description>
   <pubDate>Sun, 27 Aug 2006 13:19:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4893&amp;PID=15246&amp;title=selecting-default-data-provider#15246</guid>
  </item> 
 </channel>
</rss>