Dealing Variances

Dealing Variances

The Asn class exposes several properties for handling variance in an assignment’s baseline values and the actual cost, start date, finish data and work:

To see resource assignment variances in Microsoft Project:

  1. On the Task Usage screen, select Insert and ten Columns.
  2. Add the desired columns.

Getting Assignment Variance in Aspose.Tasks

The following example shows how to get the resource work variance using Aspose.Tasks.

 1Project project = new Project("New Project.mpp");
 2
 3// Print assignment variances
 4foreach (ResourceAssignment ra in project.ResourceAssignments)
 5{
 6    Console.WriteLine(ra.Get(Asn.WorkVariance));
 7    Console.WriteLine(ra.Get(Asn.CostVariance));
 8    Console.WriteLine(ra.Get(Asn.StartVariance));
 9    Console.WriteLine(ra.Get(Asn.FinishVariance));
10}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.