Menu

#106 Set Task Percentage Values in MS Project 2003 XML

open
nobody
None
5
2008-08-08
2008-08-08
Steve Reed
No

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 )

Discussion


Log in to post a comment.