Calculating Percentages

The PercentWorkComplete property exposed by the Asn class is used to manage the percentage of work completed on an assignment.

Getting Percentages in Aspose.Tasks

The following example shows how to get the percentage of work completed on an assignment using Aspose.Tasks.

1Project project = new Project("New Project.mpp");
2
3// Print assignment percent completion
4foreach (ResourceAssignment ra in project.ResourceAssignments)
5{
6    Console.WriteLine(ra.Get(Asn.PercentWorkComplete).ToString()); 
7}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.