Percentage Calculations
Contents
[
Hide
Show
]The PercentWorkComplete property exposed by the Resource class is used to manage the percentage of work a resource has completed. The PercentWorkComplete property represents the percentage of the work across all assignments a resource has completed. It supports the integer data type.
Getting Percentages with Aspose.Tasks
The following example shows how to get the percentage of work completed by a resource against all the assignments using Aspose.Tasks.
1Project project = new Project("New Project.mpp");
2
3// Display work percentage completion for all resources
4foreach (Resource res in project.Resources)
5{
6 if (res.Get(Rsc.Name) != null)
7 {
8 Console.WriteLine(res.Get(Rsc.PercentWorkComplete));
9 }
10}