Loading Project Data from Microsoft Project Server with Aspose.Tasks for .NET 17.8

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

We are pleased to announce the release of Aspose.Tasks for .NET 17.8. This month’s release provides support for working with rate scale information in post 2013 MPP file format. It also fixes several bugs that were reported with previous version of the API. For a detailed note on what is new and fixed, please visit the release notes section of API documentation.

Enhancements

Support for Rate Scale Information Reading Writing: Aspose.Tasks for .NET already supported reading/writing rate scale information of resource assignment for MPP 2013 and below versions. With this release, the API now supports reading and writing rate scale data for MSP 2013 and above MPP file formats. This is as illustrated in the following code sample:

Project project = new Project(dataDir + "New project 2013.mpp");

var task = project.RootTask.Children.Add("t1");

var materialResource = project.Resources.Add("materialResource");
materialResource.Set(Rsc.Type, ResourceType.Material);

var nonMaterialResource = project.Resources.Add("nonMaterialResource");
nonMaterialResource.Set(Rsc.Type, ResourceType.Work);

var materialResourceAssignment = project.ResourceAssignments.Add(task, materialResource);
materialResourceAssignment.Set(Asn.RateScale, RateScaleType.Week);

var nonMaterialResourceAssignment = project.ResourceAssignments.Add(task, nonMaterialResource);
nonMaterialResourceAssignment.Set(Asn.RateScale, RateScaleType.Week);

project.Save("output.mpp", SaveFileFormat.MPP);

var resavedProject = new Project("output.mpp");

Loading Project Data from MSP Database:  Working with loading project data from Microsoft Project Data was supported in one of the earlier versions of API. This, however, had issues with the update of Microsoft Project Database versions update and the functionality was broken. We are glad to share that this issue has been fixed now. You can now load Project data from Project database using this latest version of the API.

API Resources

You may visit the following API resources for getting started and working with the API.

  • Product Documentation – Detailed API documentation with code examples and details about API functional areas
  • Aspose.Tasks Forum – Our online support forum where we address your queries and inquiries

To keep up with our news, you can follow us on Twitter or follow our Facebook page.

Leave a Reply