Managing Assignment Cost

Managing Assignment Cost

The ResourceAssignment class exposes several properties used to manage assignment cost:

To view assignment costs in Microsoft Project:

  1. On the Task Usage page, select the Insert menu and then Column.
  2. Add the columns.

Getting Assignment Costs with Aspose.Tasks

The following example shows getting task costs using Aspose.Tasks.

 1Project project = new Project("New Project.mpp");
 2
 3// Print resource assignment costs
 4foreach (ResourceAssignment ra in project.ResourceAssignments)
 5{
 6    Console.WriteLine(ra.Get(Asn.Cost));
 7    Console.WriteLine(ra.Get(Asn.ACWP));
 8    Console.WriteLine(ra.Get(Asn.BCWP));
 9    Console.WriteLine(ra.Get(Asn.BCWS));
10}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.