Percentage Complete Calculations

In Microsoft Project, percentage complete values help track project progress by showing how much of a task has been finished. Aspose.Tasks for .NET allows developers to read and manage these percentage fields programmatically, ensuring accurate reporting and integration with custom project management workflows.

Percentages

The Tsk class provides several properties to measure task progress:

To see the physical percent complete in Microsoft Project:

  1. On the Task Entry form, from the Insert menu, select Column.
  2. Add the column.

To see the completed percentage in Microsoft Project one can double-click the desired column in the Task Entry form.

Getting Percentages in Aspose.Tasks

The following C# example demonstrates how to read task percentage completion values:

1Project project = new Project("TaskPercentageCompletion.mpp");
2
3// Access tasks and display percentage completion
4foreach (Task task in project.RootTask.Children)
5{
6    Console.WriteLine(task.Get(Tsk.PercentComplete));
7    Console.WriteLine(task.Get(Tsk.PercentWorkComplete).ToString());
8    Console.WriteLine(task.Get(Tsk.PhysicalPercentComplete).ToString());
9}

Key Notes

FAQ

Q: What is the difference between PercentComplete and PercentWorkComplete?

Q: When should I use PhysicalPercentComplete?

Q: Are percentage fields preserved across MPP and XML formats?

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.