Home > front end >  MPXJ JAVA Generate XMl
MPXJ JAVA Generate XMl

Time:01-21

I am using the MPXJ v10.15.0 library in Java to generate an XML file. Although the file is generated correctly, when I open it in Microsoft Project, all task percentages are displayed as 0%, despite the values not being 0 in the XML file.

Despite using the setPercentageComplete() method and attempting to adjust the duration, the issue with task percentages showing as 0% in Microsoft Project persists.

CodePudding user response:

The issue here is that Microsoft Project isn't necessarily using the percent complete value you provide for each task directly. Instead, if your task has resource assignments you will need to set the Work, Actual Work, Remaining Work and Start attributes to appropriate values on each resource assignment to ensure that the task shows the percent complete value you are expecting.

You can see an example of this here

CodePudding user response:

I was looking for the solution to my problem and was wondering, why people feel scared to reply in this community. I hope nobody is too strict on what they say, because we all are just learning. And we all make mistakes. So unfortunately I didn't find any help. But found a custom software development company who will deal with my project. Guys, I beg you, please allow expressing different opinions!

  • Related