M
Mike
I think what I want to do is pretty simple, but my attempts are causing COM
exception. I want the first task I add to be the Summary task and then I want
each successive task I add to become the child of the summary task.
In c# I am trying this
// first task is parent
MSProject.Task parent= _thisProject.Tasks[projectRow["JobName"]];
....
while(moreTasks)
{
...
MSProject.Task child=_thisProject.Tasks.Add(taskName.ToString(),
Type.Missing);
// assign parent to child
child.Parent = parent; // causes "Unexpected error occurred with the method"
}
Thanks
exception. I want the first task I add to be the Summary task and then I want
each successive task I add to become the child of the summary task.
In c# I am trying this
// first task is parent
MSProject.Task parent= _thisProject.Tasks[projectRow["JobName"]];
....
while(moreTasks)
{
...
MSProject.Task child=_thisProject.Tasks.Add(taskName.ToString(),
Type.Missing);
// assign parent to child
child.Parent = parent; // causes "Unexpected error occurred with the method"
}
Thanks