Timescale Issues from VB.Net

T

Tantras35

I've got a .Net integration project where we are accessing the project
file through COM Interop. I need to pull out all the tasks, resources,
assignments, etc. At the moment, I'm trying to pull out the assignment
resources, calculated to the month.


I've pulled the resources on a particular task and "calculated" the
timscaledata for each assignment with the statements:

mWork=mAssign.TimeScaleData(mA­ssign.Start, mAssign.finish,
Project.PjAssignmentTimescaled­Data.pjAssignmentTimescaledWor­k,
Project.PjTimescaleUnit.pjTime­scaleMonths)

I then try to cycle through each month with a for next loop to write
out the data:

For iCnt=1 to mwork.Count
mwork(icnt).startdate
mWork(icnt).enddate
mwork(icnt).value
Next


I'm trying to test it on a assignment that lasts 11 months, but it
currently is dying on the third month (either way, I've tried from 1 to
count and from count to 1 step -1).


The additional problem is that that this is causing the project file to
change, because I'm grabbing the active project from the open instance
of MS Project 2003.


Any help would be appreciated,


Michael Schnell
 
M

Mike Glen

Hi Michael,

Try posting on the developer newsgroup. Please see FAQ Item: 24. Project
Newsgroups. FAQs, companion products and other useful Project information
can be seen at this web address: http://project.mvps.org/faqs.htm

Mike Glen
Project MVP
 

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