<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Get Tasks in Outlook 2007 with VB.NET</title>
	<atom:link href="http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/</link>
	<description>web development, tech reviews, tips, tricks, blogging</description>
	<lastBuildDate>Sun, 07 Mar 2010 18:27:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: captain</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-269</link>
		<dc:creator>captain</dc:creator>
		<pubDate>Fri, 27 Jun 2008 07:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-269</guid>
		<description>Thanks a bunch.

Yes, I have seen that your code did not create a task, I was commenting on your comment:

&quot;One more thing… if you want to create a new task, you do it like this:

Dim MyApp As Outlook.Application = New Outlook.Application()

Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)&quot;

You have helped me a lot, thank you again!</description>
		<content:encoded><![CDATA[<p>Thanks a bunch.</p>
<p>Yes, I have seen that your code did not create a task, I was commenting on your comment:</p>
<p>&#8220;One more thing… if you want to create a new task, you do it like this:</p>
<p>Dim MyApp As Outlook.Application = New Outlook.Application()</p>
<p>Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)&#8221;</p>
<p>You have helped me a lot, thank you again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: captain</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-530</link>
		<dc:creator>captain</dc:creator>
		<pubDate>Fri, 27 Jun 2008 05:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-530</guid>
		<description>Thanks a bunch.&lt;br&gt;&lt;br&gt;Yes, I have seen that your code did not create a task, I was commenting on your comment:&lt;br&gt;&lt;br&gt;&quot;One more thing… if you want to create a new task, you do it like this:&lt;br&gt;&lt;br&gt;Dim MyApp As Outlook.Application = New Outlook.Application()&lt;br&gt;&lt;br&gt;Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)&quot;&lt;br&gt;&lt;br&gt;You have helped me a lot, thank you again!</description>
		<content:encoded><![CDATA[<p>Thanks a bunch.</p>
<p>Yes, I have seen that your code did not create a task, I was commenting on your comment:</p>
<p>&#8220;One more thing… if you want to create a new task, you do it like this:</p>
<p>Dim MyApp As Outlook.Application = New Outlook.Application()</p>
<p>Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)&#8221;</p>
<p>You have helped me a lot, thank you again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emad Ibrahim</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-268</link>
		<dc:creator>Emad Ibrahim</dc:creator>
		<pubDate>Thu, 26 Jun 2008 14:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-268</guid>
		<description>@captain: The code in my first comment doesn&#039;t create a task it retrieves all the tasks...  Here it is again:

Dim ns As Outlook.NameSpace
ns = MyApp.Application.GetNamespace(”MAPI”)
outlookTasksAll = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items

Again, you can download the source code from the link in my first comment and take a look at it.</description>
		<content:encoded><![CDATA[<p>@captain: The code in my first comment doesn&#8217;t create a task it retrieves all the tasks&#8230;  Here it is again:</p>
<p>Dim ns As Outlook.NameSpace<br />
ns = MyApp.Application.GetNamespace(”MAPI”)<br />
outlookTasksAll = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items</p>
<p>Again, you can download the source code from the link in my first comment and take a look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: captain</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-267</link>
		<dc:creator>captain</dc:creator>
		<pubDate>Thu, 26 Jun 2008 12:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-267</guid>
		<description>Thank you very much.

No, I do not want to create a new task, I would like to grab the info for a better printout formatting.</description>
		<content:encoded><![CDATA[<p>Thank you very much.</p>
<p>No, I do not want to create a new task, I would like to grab the info for a better printout formatting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emad Ibrahim</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-529</link>
		<dc:creator>Emad Ibrahim</dc:creator>
		<pubDate>Thu, 26 Jun 2008 12:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-529</guid>
		<description>@captain: The code in my first comment doesn&#039;t create a task it retrieves all the tasks...  Here it is again:&lt;br&gt;&lt;br&gt;Dim ns As Outlook.NameSpace&lt;br&gt;ns = MyApp.Application.GetNamespace(”MAPI”)&lt;br&gt;outlookTasksAll = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items&lt;br&gt;&lt;br&gt;Again, you can download the source code from the link in my first comment and take a look at it.</description>
		<content:encoded><![CDATA[<p>@captain: The code in my first comment doesn&#39;t create a task it retrieves all the tasks&#8230;  Here it is again:</p>
<p>Dim ns As Outlook.NameSpace<br />ns = MyApp.Application.GetNamespace(”MAPI”)<br />outlookTasksAll = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items</p>
<p>Again, you can download the source code from the link in my first comment and take a look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: captain</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-528</link>
		<dc:creator>captain</dc:creator>
		<pubDate>Thu, 26 Jun 2008 10:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-528</guid>
		<description>Thank you very much.&lt;br&gt;&lt;br&gt;No, I do not want to create a new task, I would like to grab the info for a better printout formatting.</description>
		<content:encoded><![CDATA[<p>Thank you very much.</p>
<p>No, I do not want to create a new task, I would like to grab the info for a better printout formatting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emad Ibrahim</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-265</link>
		<dc:creator>Emad Ibrahim</dc:creator>
		<pubDate>Wed, 25 Jun 2008 11:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-265</guid>
		<description>One more thing... if you want to create a new task, you do it like this:

Dim MyApp As Outlook.Application = New Outlook.Application()

Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)</description>
		<content:encoded><![CDATA[<p>One more thing&#8230; if you want to create a new task, you do it like this:</p>
<p>Dim MyApp As Outlook.Application = New Outlook.Application()</p>
<p>Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emad Ibrahim</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-264</link>
		<dc:creator>Emad Ibrahim</dc:creator>
		<pubDate>Wed, 25 Jun 2008 11:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-264</guid>
		<description>The way I get the outlook tasks is like this:

&#039;get outlook tasks
Dim ns As Outlook.NameSpace

ns = MyApp.Application.GetNamespace(&quot;MAPI&quot;)

outlookTasksAll = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items

outlookTasks = (From outlookTask As Outlook.TaskItem In outlookTasksAll _
                    Where outlookTask.Status &lt;&gt; Outlook.OlTaskStatus.olTaskComplete _
                    ).ToList

You can take a look at my open source project that syncs RTM with Outlook you might find what you are looking for in the source code.  There is more info at http://www.emadibrahim.com/2008/04/14/synchronize-outlook-tasks-with-remember-the-milk/</description>
		<content:encoded><![CDATA[<p>The way I get the outlook tasks is like this:</p>
<p>&#8216;get outlook tasks<br />
Dim ns As Outlook.NameSpace</p>
<p>ns = MyApp.Application.GetNamespace(&#8220;MAPI&#8221;)</p>
<p>outlookTasksAll = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items</p>
<p>outlookTasks = (From outlookTask As Outlook.TaskItem In outlookTasksAll _<br />
                    Where outlookTask.Status <> Outlook.OlTaskStatus.olTaskComplete _<br />
                    ).ToList</p>
<p>You can take a look at my open source project that syncs RTM with Outlook you might find what you are looking for in the source code.  There is more info at <a href="http://www.emadibrahim.com/2008/04/14/synchronize-outlook-tasks-with-remember-the-milk/" rel="nofollow">http://www.emadibrahim.com/2008/04/14/synchronize-outlook-tasks-with-remember-the-milk/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emad Ibrahim</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-527</link>
		<dc:creator>Emad Ibrahim</dc:creator>
		<pubDate>Wed, 25 Jun 2008 09:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-527</guid>
		<description>One more thing... if you want to create a new task, you do it like this:&lt;br&gt;&lt;br&gt;Dim MyApp As Outlook.Application = New Outlook.Application()&lt;br&gt;&lt;br&gt;Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)</description>
		<content:encoded><![CDATA[<p>One more thing&#8230; if you want to create a new task, you do it like this:</p>
<p>Dim MyApp As Outlook.Application = New Outlook.Application()</p>
<p>Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emad Ibrahim</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-526</link>
		<dc:creator>Emad Ibrahim</dc:creator>
		<pubDate>Wed, 25 Jun 2008 09:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-526</guid>
		<description>Outlook.OlTaskStatus.olTaskComplete _&lt;br&gt;                    ).ToList&lt;br&gt;&lt;br&gt;You can take a look at my open source project that syncs RTM with Outlook you might find what you are looking for in the source code.  There is more info at &lt;a href=&quot;http://www.emadibrahim.com/2008/04/14/synchronize-outlook-tasks-with-remember-the-milk/&quot;&gt;http://www.emadibrahim.com/2008/04/14/synchroni...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Outlook.OlTaskStatus.olTaskComplete _<br />                    ).ToList</p>
<p>You can take a look at my open source project that syncs RTM with Outlook you might find what you are looking for in the source code.  There is more info at <a href="http://www.emadibrahim.com/2008/04/14/synchronize-outlook-tasks-with-remember-the-milk/"></a><a href="http://www.emadibrahim.com/2008/04/14/synchroni.." rel="nofollow">http://www.emadibrahim.com/2008/04/14/synchroni..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: captain</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-262</link>
		<dc:creator>captain</dc:creator>
		<pubDate>Mon, 23 Jun 2008 09:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-262</guid>
		<description>For Each task In tasks
    ‘ iterate through the tasks here
Next

...
ARGH!

How do I actually get to the tasks then?
how do I acess the subject, for example?

Anytime I try using an object like 
dim task as outlook.taskitem I get a NULL reference exception.
If I use
dim task as new outlook.taskitem() I get a &quot;can not be used in this context, as outlook.classitem is FRIEND&quot;

help, please?</description>
		<content:encoded><![CDATA[<p>For Each task In tasks<br />
    ‘ iterate through the tasks here<br />
Next</p>
<p>&#8230;<br />
ARGH!</p>
<p>How do I actually get to the tasks then?<br />
how do I acess the subject, for example?</p>
<p>Anytime I try using an object like<br />
dim task as outlook.taskitem I get a NULL reference exception.<br />
If I use<br />
dim task as new outlook.taskitem() I get a &#8220;can not be used in this context, as outlook.classitem is FRIEND&#8221;</p>
<p>help, please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: captain</title>
		<link>http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/comment-page-1/#comment-525</link>
		<dc:creator>captain</dc:creator>
		<pubDate>Mon, 23 Jun 2008 07:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.emadibrahim.com/2008/01/06/get-tasks-in-outlook-2007-with-vbnet/#comment-525</guid>
		<description>For Each task In tasks&lt;br&gt;    ‘ iterate through the tasks here&lt;br&gt;Next&lt;br&gt;&lt;br&gt;...&lt;br&gt;ARGH!&lt;br&gt;&lt;br&gt;How do I actually get to the tasks then?&lt;br&gt;how do I acess the subject, for example?&lt;br&gt;&lt;br&gt;Anytime I try using an object like &lt;br&gt;dim task as outlook.taskitem I get a NULL reference exception.&lt;br&gt;If I use&lt;br&gt;dim task as new outlook.taskitem() I get a &quot;can not be used in this context, as outlook.classitem is FRIEND&quot;&lt;br&gt;&lt;br&gt;help, please?</description>
		<content:encoded><![CDATA[<p>For Each task In tasks<br />    ‘ iterate through the tasks here<br />Next</p>
<p>&#8230;<br />ARGH!</p>
<p>How do I actually get to the tasks then?<br />how do I acess the subject, for example?</p>
<p>Anytime I try using an object like <br />dim task as outlook.taskitem I get a NULL reference exception.<br />If I use<br />dim task as new outlook.taskitem() I get a &#8220;can not be used in this context, as outlook.classitem is FRIEND&#8221;</p>
<p>help, please?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
