G
Guest
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(mAssign.Start, mAssign.finish,
Project.PjAssignmentTimescaledData.pjAssignmentTimescaledWork,
Project.PjTimescaleUnit.pjTimescaleMonths)
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
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(mAssign.Start, mAssign.finish,
Project.PjAssignmentTimescaledData.pjAssignmentTimescaledWork,
Project.PjTimescaleUnit.pjTimescaleMonths)
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