Browse our Products

Aspose.Tasks for C++ 22.7 Release Notes

All Changes

KeySummaryIssue Type
TASKSNET-10589Add an ability to map member of Tsk class to MS Project’s default field titleEnhancement
TASKSNET-10558Add support of reading of Activity Codes and its values for Primavera P6 XML formatEnhancement
TASKSNET-3635Reduce load time when reading a project from Project Server DBEnhancement
TASKSNET-10601Fix ‘Arithmetic operation resulted in an overflow’ error when opening files saved by MS Project ver 16.0.15330.20230 or newerBug
TASKSNET-10590Fix Null reference exception when reading project from Primavera DB.Bug
TASKSNET-10585Fix incorrect reading of extended attributes from MS Project DBBug
TASKSNET-10570Fix setting of Tsk.NotesText is not working when CalculationMode is ‘None’.Bug
TASKSNET-10495Fix Prj.Calendar is null when reading Calendar from the specific fileBug

Public API and Backwards Incompatible Changes

The following public types were added:Description
Aspose.Tasks.Util.FieldHelperHelper class which provides useful operations with fields.
The following public methods and properties were added:Description
Aspose.Tasks.Key<T,K>.KeyTypeGets the key of the property.
Aspose.Tasks.Util.FieldHelper.GetDefaultTaskFieldTitle(Aspose.Tasks.TaskKey)Returns a default title of the specific task field.
The following public enumerations were deleted:Description
Aspose.Tasks.Saving.SaveFileFormat.MPP
Aspose.Tasks.Saving.SaveFileFormat.XML
Aspose.Tasks.Saving.SaveFileFormat.HTML
Aspose.Tasks.Saving.SaveFileFormat.BMP
Aspose.Tasks.Saving.SaveFileFormat.PNG
Aspose.Tasks.Saving.SaveFileFormat.JPEG
Aspose.Tasks.Saving.SaveFileFormat.PDF
Aspose.Tasks.Saving.SaveFileFormat.TIFF
Aspose.Tasks.Saving.SaveFileFormat.XPS
Aspose.Tasks.Saving.SaveFileFormat.XAML
Aspose.Tasks.Saving.SaveFileFormat.SVG
Aspose.Tasks.Saving.SaveFileFormat.CSV
Aspose.Tasks.Saving.SaveFileFormat.TXT
Aspose.Tasks.Saving.SaveFileFormat.XLSX
Aspose.Tasks.Saving.SaveFileFormat.PrimaveraP6XML
Aspose.Tasks.Saving.SaveFileFormat.PrimaveraXER
Aspose.Tasks.Saving.SaveFileFormat.MPX
Aspose.Tasks.Tsk.StartSlack
Aspose.Tasks.Tsk.FinishSlack
Aspose.Tasks.Tsk.FreeSlack
Aspose.Tasks.Tsk.TotalSlack

Examples and additional notes

Related issue: TASKSNET-10589 - Add an ability to map member of Tsk class to MS Project’s default field title

Now the user can get default title of the specific task field using FieldHelper class:

Console::WriteLine(FieldHelper::GetDefaultTaskFieldTitle(Tsk::TotalSlackTimeSpan().get_KeyType()));  // Outputs 'Total Slack'
Console::WriteLine(FieldHelper::GetDefaultTaskFieldTitle(Tsk::PercentWorkComplete().get_KeyType())); // Outputs '% Work Complete'
Console::WriteLine(FieldHelper::GetDefaultTaskFieldTitle(Tsk::IsNull().get_KeyType()));              // Outputs ''

Please note that some members of Tsk class don’t have corresponding MS Project column and therefore don’t have default title.


Related issue: TASKSNET-10558 - Add support of reading of Activity Codes and its values for Primavera P6 XML format

Breaking change notice.
Prior to 22.6 Activity Codes of Primavera P6 formats (XER and Primavera P6) were mapped to text ExtendedAttributes with lookup calculation type. It was a bit inaccurate because Activity Codes can have hierarchy of values, whilst lookup values cannot have hierarchy. Since 22.7 Activity Codes are mapped to more appropriate Outline Codes. Outline Code definitions can be found at Project.OutlineCodes collection, values are stored in Task.OutlineCodes).