View Full Version : Create a MS Project file with correct task hierarchy using Visual Basic?


Eugene Rokhlin
09-17-2003, 08:04 AM
Hi All,

I have got a recordset that keeps some information that needs to be
converted to the MS Project file.

The fields are like these:
- ProjectTaskID
- ProjectTaskParentID
- WBS
- ParentWBS
- TaskName
- StartDate
- EndDate
- .... other non important fields.

What I need to do is to create a .mpp file with correct hierarchy.
So, I know a parent (if any) for every task.

What can I do?

I can open an empty .mpp file. I can add all tasks there. I try then to go
through all the tasks and set a parent for each one. But I can't see the way
to do it.

Do I need to make a task a child or parent of another task at the same time
I add it to the project or is there some way to do it later?

Can I get the task object by its ID or UniqueID?

The hierarchy of tasks can be 3 or more levels deep ....

Thanks.

Best Regards,
Eugene Rokhlin