Handling Variances
Contents
[
Hide
Show
]A work variance is the difference between the estimated work (the baseline) and actual work performed.
Handling Variances
The WorkVariance property exposed by the Resource class handles variance in work:
- WorkVariance: a project resource’s difference from the baseline work (double).
Microsoft Project View of Resource Work Variance
To see the resource work variance in Microsoft Project:
- On the Resource Sheet, go to the Insert menu and select Column.
- Add the Variance column.
Getting Resource Work Variance in Aspose.Tasks
The following examples show how to get resource work variance using Aspose.Tasks.
1Project project = new Project("New Project.mpp");
2foreach (ResourceAssignment ra in project.ResourceAssignments)
3{
4 Resource resource = ra.Get(Asn.Resource);
5 double d = resource.Get(Rsc.WorkVariance);
6 Console.WriteLine(d);
7}