Create a MS Project file with correct task hierarchy using Visual Basic?

E

Eugene Rokhlin

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
 
G

Gérard DUCOURET

Hello Eugene,
I think that the ID and the WBS index for each task would be enough to create your hierarchy.

Gérard Ducouret
 
G

Gérard DUCOURET

Sorry,
Instead of WBS index, use the Outline Level (pjTaskOutlineLevel)

Gérard ducouret
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top