This project has moved and is read-only. For the latest updates, please go here.
   create new task item in Outlook
   taken from Example02.cs
private void Example02Main()
   // start outlook 
   Outlook.Application outlookApplication = new Outlook.Application();

   // create a new TaskItem.
   Outlook.TaskItem newTask =
outlookApplication.CreateItem(OlItemType.olTaskItem) as Outlook.TaskItem; // configure the task at hand and save it. newTask.Subject = "NetOffice Sample Task";
newTask.Body = "The Task is created by NetOffice Outlook Example02.cs"; newTask.DueDate = DateTime.Now; newTask.Importance = OlImportance.olImportanceHigh; newTask.Save(); // close outlook and dispose outlookApplication.Quit(); outlookApplication.Dispose(); }

Last edited Jun 13, 2012 at 10:28 AM by SebastianDotNet, version 5


No comments yet.