Community Page
- www.emadibrahim.com Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Excellent post! I've been looking for a way to DRY up my own code as well and your post led me on the right way.
- Thanks a lot.It works also with SQL Server 2008 Express and NetworkService instead of LocalSystem.
- There is another validation toolkit called Validator Toolkit for ASP.NET on Codeplex.com. See http://www.codeplex.com/MvcValidatorToolkit
- Is that a compile error or runtime error? Did you copy & paste the code correctly? Sometimes the browser messes up the code formatting. Other than that you should add a breakpoint and examine...
- Hi Emad I just tried your code, but it is throwing me an error at this part: var x = (from result in resultXml.Descendants("nodeKeyVal") ... It tells me : error CS1026: ) expected Do you...
Jump to original thread »
You can retrieve the list of tasks in your Outlook 2007 using the following code
Dim ns As Outlook.NameSpaceDim tasks As Outlook.Itemsns = Application.GetNamespace(”MAPI”)tasks = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items
Dim task As Obj ... Continue reading »
Dim ns As Outlook.NameSpaceDim tasks As Outlook.Itemsns = Application.GetNamespace(”MAPI”)tasks = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items
Dim task As Obj ... Continue reading »
1 year ago
‘ 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 "can not be used in this context, as outlook.classitem is FRIEND"
help, please?
1 year ago
).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/synchroni...
1 year ago
Dim MyApp As Outlook.Application = New Outlook.Application()
Dim outlookTask As Outlook.TaskItem = MyApp.Application.CreateItem(Outlook.OlItemType.olTaskItem)
1 year ago
No, I do not want to create a new task, I would like to grab the info for a better printout formatting.
1 year ago
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.
1 year ago
Yes, I have seen that your code did not create a task, I was commenting on your comment:
"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)"
You have helped me a lot, thank you again!