0

I try to set 50 % Complete for single task using MPXJ in C# code

var pfTask = pf.GetTaskByID(new java.lang.Integer(task.ID));
pfTask.PercentageComplete = new java.lang.Integer(task.PercentComplete);

but it doesn't work - after opening in MS Project 2010/2013 50% is set but for [% work Complete] not for [% Complete].

marcinn
  • 1,879
  • 2
  • 22
  • 46

1 Answers1

0

Try using the latest mpxj library. 5.2.2

Check these APIs of Task class 1. setPercentageComplete 2. setPercentageWorkComplete

Patruni Srikanth
  • 741
  • 1
  • 7
  • 14