MS Project - How to get Tasks information programmatically from ad

S

Smugliy

Hi ,I created a shared Add-in for MS Project 2007 on C#.

I have :

private MSProject.Application applicationObject;
applicationObject = ((MSProject.Application)(application));

Now ,what I want to do is to read tasks information.

For example,

My project has 3 tasks :
Name Res.Name Work ..... All other information
task11 res1 16h ............
task12 res2 24h ..............
task13 res3 8h ...............


How can I read in code all this information using applicationObject .
There is a field <applicationObject.ActiveProject.Tasks> but I don't know
how can I use it ,maybe it's not it.


Please ,help me to understand this,
For example to print Resource Name for each task


Thanks,

Smugliy
 
R

Ran @Comverse

Hi,

You are right, but which information do you need?

applicationObject.ActiveProject.Tasks(index).Name //Task Name
applicationObject.ActiveProject.Tasks(index).Duration //Task Duration

etc.
 
S

Smugliy

Thanks ,Ran

Ran @Comverse said:
Hi,

You are right, but which information do you need?

applicationObject.ActiveProject.Tasks(index).Name //Task Name
applicationObject.ActiveProject.Tasks(index).Duration //Task Duration

etc.
 

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