Hello, looks like I am moving through all the unclosed issues with Tasks. The problem is that it still does not recalculate start and finish dates after updates of duration.
My code is quite simple. I change Duration and then export to Pdf:
foreach (KeyValuePair<int, int> keyValue in dict)
Aspose.Tasks.Task task = pr.RootTask.Children.GetById(keyValue.Key); string taskName = task.Get(Tsk.Name); Duration taskDuration = task.Get(Tsk.Duration); double taskDurationDub = task.Get(Tsk.Duration).ToDouble(); task.Set(Tsk.Duration, taskDuration.Add(10)); } pr.Save(".\\files\\_officeTasks.pdf", options);
I also save MPP file and in Microsoft project it is necessary to press Calculate project and all being recalculated properly. Are there any solutions on it?