P
Project-guy
I have written an application which accesses MS Project 2000 via the
MsProject.OLB type lib. In Ms project on the Task Sheet, there is a field
called Task Type, which is used to control Resources and Durations . There
are 3 choices, Fixed Duration, Fixed Units and Fixed Work. On the Task Split
screen for Resource assignments, the choices are again displayed on the
dropdown.
In the MSProject.olb file in the Tasks Segment are several properties which
seem to represnt the same field. First, there is TYPE_, which should return
a pjFixedTaskType and should return 0,1,2 for the three types above. When I
access this property, i get a message that the field TYPE_ is not supported.
Another property in the Task Segment is "FixedDuration", which returns an
OLEVariant. From my experimentation, this field contians either a 0 or a 1.
When I compare this output to the MS project Task Type output, it matches
most of the time, but not always. The Fixed Duration normally contians a 0
in the Fixduration property. Fixed Work and Fixed Units normally contain a 1,
but not always.
I suspect there is another field in the MSProj.olb type lib which I have not
yet discovered which contains the Task Type info I need. If not, can anyone
tell me how to access the TYPE_ property.
MsProject.OLB type lib. In Ms project on the Task Sheet, there is a field
called Task Type, which is used to control Resources and Durations . There
are 3 choices, Fixed Duration, Fixed Units and Fixed Work. On the Task Split
screen for Resource assignments, the choices are again displayed on the
dropdown.
In the MSProject.olb file in the Tasks Segment are several properties which
seem to represnt the same field. First, there is TYPE_, which should return
a pjFixedTaskType and should return 0,1,2 for the three types above. When I
access this property, i get a message that the field TYPE_ is not supported.
Another property in the Task Segment is "FixedDuration", which returns an
OLEVariant. From my experimentation, this field contians either a 0 or a 1.
When I compare this output to the MS project Task Type output, it matches
most of the time, but not always. The Fixed Duration normally contians a 0
in the Fixduration property. Fixed Work and Fixed Units normally contain a 1,
but not always.
I suspect there is another field in the MSProj.olb type lib which I have not
yet discovered which contains the Task Type info I need. If not, can anyone
tell me how to access the TYPE_ property.