Hi, I'm writing an add-in for Outlook 2003 which takes the tasks from the task list and schedules them in to the calendar with respect to task priority. I have managed to sort the tasks by priority in the task list view via:
_Items olTasks = olFolderTask.Items;
// MSO items collection in folderolTasks.Sort("[Priority]", true); // sort items by Priority before reading
int nTasksCount = olTasks.Count; for (int i = 0; i < nTasksCount; ++i){
_TaskItem olItemTask;
try{
if (i == 0) // Should be called first before iteration startolItemTask = (_TaskItem)olTasks.GetFirst();
// First item in collection elseolItemTask = (_TaskItem)olTasks.GetNext();
// Starts with second item in collection if (olItemTask.Complete) // Task allredy completed continue;
However, when the tasks are sent to the calendar they lose this prioritised order and appear in order of task name. Any ideas

Outlook add-in (auto-scheduler)
James Mac
Daniel Gary