Set Task Percentage Values in MS Project 2003 XML
Open Source desktop project management
Brought to you by:
akheirol
When a Open Proj Project is "Saved As" MS Project XML format, the following values are not stored in the resulting XML file.
PercentComplete
PercentWorkComplete
PhysicalPercentComplete
The following has worked for me :-
net.sf.mpxj.Task task.....;
double percentComplete = 0.75;
double percentWorkComplete = 0.75
double physicalWorkComplete = 0.75
task.setPercentageComplete( percentComplete * 100 );
task.setPercentageWorkComplete( percentWorkComplete *100 )
task.setPhysicalPercentComplete( (int) physicalWorkComplete * 100 )