A
amin
hi
i have two proplems if you can help me.
1. To change in MS.Project Milestone tasks color in the Gantt Bar. i
try to use the GanttBarFormat function but it's not effective on
milestone task
2. the second problem is : if i have summary task and this Summary is
milestone , i can't change the Gantt Bar Start Shape and End Shape for
this task . and by macro in ms.msproject i can't change it .
in the both problems i use the GanttBarFormat :
1. in the first problem i choose the same foreach but with
PjColor.pjRed;
foreach (Task task in app.ActiveProject.Tasks)
{
app.GanttBarFormat( task.ID,
Missing.Value, PjBarEndShape.pjDiamond, PjBarType.pjSolid ,
PjColor.pjBlack,
PjShape.pjRectangle,
PjFillPattern.pjSolidFillPattern, PjColor.pjBlack,
PjBarEndShape.pjDiamond,PjBarType.pjSolid , PjColor.pjBlack
, Missing.Value,Missing.Value, Missing.Value,
Missing.Value,
Missing.Value, false, Missing.Value);
}
thanks
amin
(e-mail address removed)
i have two proplems if you can help me.
1. To change in MS.Project Milestone tasks color in the Gantt Bar. i
try to use the GanttBarFormat function but it's not effective on
milestone task
2. the second problem is : if i have summary task and this Summary is
milestone , i can't change the Gantt Bar Start Shape and End Shape for
this task . and by macro in ms.msproject i can't change it .
in the both problems i use the GanttBarFormat :
1. in the first problem i choose the same foreach but with
PjColor.pjRed;
foreach (Task task in app.ActiveProject.Tasks)
{
app.GanttBarFormat( task.ID,
Missing.Value, PjBarEndShape.pjDiamond, PjBarType.pjSolid ,
PjColor.pjBlack,
PjShape.pjRectangle,
PjFillPattern.pjSolidFillPattern, PjColor.pjBlack,
PjBarEndShape.pjDiamond,PjBarType.pjSolid , PjColor.pjBlack
, Missing.Value,Missing.Value, Missing.Value,
Missing.Value,
Missing.Value, false, Missing.Value);
}
thanks
amin
(e-mail address removed)