Hi,
Hi Jan,
Hi Kashif,
Hi Jan Uys,
Thank you for providing sample file.
I have tested the issue of extended attribute Text10 value using Aspose.Tasks for .NET 9.3.0 and have logged it under Id: TASKS-34530 for further investigation by the product team.
Regarding the Task Actual Duration, no issue is observed and MSP and Aspose.Tasks show similar values. Could you please test this issue using latest version again and share the feedback?
Project proj = new Project(“test_2013.mpp”);
ChildTasksCollector collector = new ChildTasksCollector(); // Create a ChildTasksCollector instance
TaskUtils.Apply(proj.RootTask, collector, 5); // Collect all the tasks from RootTask using TaskUtils
foreach (Task tsk in collector.Tasks)
{
Console.WriteLine("Actual Duration = {0,10} - " + tsk.Get(Tsk.Name), tsk.Get(Tsk.ActualDuration));
}
Hi Kashif,
Hi Jan Uys,
In this project values are calculating by formula and if we don’t want to calculate them (similar to the attached project), then use proj.CalculationMode = CalculationMode.None. Please give a try to the following sample code which displays Text10 values exactly like the attached project.
Project proj = new Project(path + "test_2013.mpp");
proj.CalculationMode = CalculationMode.None;
ChildTasksCollector collector = new ChildTasksCollector(); // Create a ChildTasksCollector instance
TaskUtils.Apply(proj.RootTask, collector, 5); // Collect all the tasks from RootTask using TaskUtils
foreach (Task tsk in collector.Tasks)
{
foreach (ExtendedAttribute att in tsk.ExtendedAttributes)
{
if (att.AttributeDefinition.FieldName == "Text10")
{
Console.WriteLine("{0,4} - " + tsk.Get(Tsk.Name), att.Value);
}
}
}
Hi Kashif,
Hi Jan,
This seems to be an issue with the API functionality that needs to be rectified. The problem has been logged as TASKS-34587 in our issue tracking system for further investigation by our Product team. We’ll update you here once there is some information or a fix version available in this regard.
The issues you have found earlier (filed as TASKS-34587) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.