VB Add Task And Then Read Task

C

Chris Molland

Hello,

I am developing an application which gathers information from a user,
through a Wizard, and then programatically creates a new Task in MS Project
2007. I then want to present a DataGrid in my application listing all of the
Tasks with names, dates etc.

I want to allow MS Project to automatically level resources and take into
account calendars so I thought I should add the new Task and then read the
Task back again, along with the others, getting the calculated Finish
DateTime.

Is there anything I should be aware of to ensure that I have allowed MS
Project time to calculate the new Finish Date before I read all of the Tasks?
Additionally, sorry, how do you recommend I read all of the Tasks efficiently
to pass them back to my VB application as a DataTable?

Thank you.
 
J

Jan De Messemaeker

See embedded

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
Chris Molland said:
Hello,

I am developing an application which gathers information from a user,
through a Wizard, and then programatically creates a new Task in MS
Project
2007. I then want to present a DataGrid in my application listing all of
the
Tasks with names, dates etc.

I want to allow MS Project to automatically level resources and take into
account calendars so I thought I should add the new Task and then read the
Task back again, along with the others, getting the calculated Finish
DateTime.

Is there anything I should be aware of to ensure that I have allowed MS
Project time to calculate the new Finish Date before I read all of the
Tasks?
No

Additionally, sorry, how do you recommend I read all of the Tasks
efficiently
to pass them back to my VB application as a DataTable?

For each Job in activeproject.tasks
If not job is nothing then
......
End if
Next Job
 

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