This project has moved. For the latest updates, please go here.
' create a task item in outlook
' taken from Example02.vb
'
Private Sub Example02Main()

   ' start outlook
   Dim outlookApplication = New Outlook.Application()

   ' create a new TaskItem
   Dim newTask As Outlook.TaskItem = outlookApplication.CreateItem(OlItemType.olTaskItem)

   ' configure the task at hand and save it.
   newTask.Subject = "NetOffice Sample Task"
   newTask.Body    = "The Task is created by NetOffice Outlook Example02.vb"
   newTask.DueDate = DateTime.Now
   newTask.Importance = OlImportance.olImportanceHigh

   newTask.Save()

   'close outlook and dispose
   outlookApplication.Quit()
   outlookApplication.Dispose()

End Sub

Last edited Jun 13, 2012 at 12:00 PM by SebastianDotNet, version 6

Comments

No comments yet.