MPP start dates for parent tasks are out

Hi All,

I am using the code below with a default empty mpp file template file.

ProjectFile.CalculationMode = CalculationMode.Manual;
ProjectFile.Set(Prj.DateFormat, DateFormat.Date_mmmm_dd_yyyy);
ProjectFile.Set(Prj.StartDate, new DateTime(year, 7, 1));
ProjectFile.Set(Prj.FinishDate, new DateTime(year + 1, 6, 30));
ProjectFile.Set(Prj.MinutesPerDay, 60 * 8);

ProjectFile.RootTask.Set(Tsk.IsExpanded, true);
ProjectFile.RootTask.Set(Tsk.IsRollup, false);

var task = ProjectFile.RootTask.Children.Add(“TASK”);

task.Set(Tsk.Start, new DateTime(2014, 07, 3).AddHours(8));
task.Set(Tsk.DurationFormat, TimeUnitType.Day);
task.Set(Tsk.Duration, task.Get(Tsk.Duration).Add(-1).Add(20));

task.Set(Tsk.IsExpanded, true);

var task2 = task.Children.Add(“TASK”);

task2.Set(Tsk.Start, new DateTime(2014, 07, 6).AddHours(8));
task2.Set(Tsk.DurationFormat, TimeUnitType.Day);
task2.Set(Tsk.Duration, task2.Get(Tsk.Duration).Add(-1).Add(5));
task2.Set(Tsk.IsExpanded, true);

var task3 = task2.Children.Add(“TASK”);

task3.Set(Tsk.Start, new DateTime(2014, 07, 6).AddHours(8));
task3.Set(Tsk.DurationFormat, TimeUnitType.Day);
task3.Set(Tsk.Duration, task3.Get(Tsk.Duration).Add(-1).Add(3));

When I save the file to mpp the start date values of the parent task pop out, first one can be seen in the attachment 1 as starting at the project start date. the second at the parent start date which was set to the 3rd JULY 2014

Is this a bug?
Or am I missing a setting for the parent task item?

Pdf Save works as intended. Attachment 2

Hi Andrew,


Thank you for contacting Aspose support team.

I have tried to re-produce the scenario using your code but am afraid that I got different results as compared to the image sent by you. I used a template MPP file for this testing but got quite different result in Manual mode as shown in the attached image (MPPOutput.png). I have also attached the complete code and template file for your reference.

Please give it a try and let us know the steps to re-produce the scenario here so that we may also observe the issue here and provide our feedback. Although it seems that there are some issues in the Manual mode, but I will log once I get the same results as obtained by you.

We are sorry for any inconvenience caused to you in this regard.


Hi Kashif,

I have tested with your version of the blank template and get the same results as shown in your MPPOutput.png

When I use my version of the blank project file I still get my results as mentioned in the first post.
I have attached my blank version of the 2010 project file

Please try using my version of the blank template to see if you can produce my results.

I am using Microsoft Project Professional 2010 there could possibly be a difference in default files for these versions?

Cheers,
Andrew Chin.

Hi Andrew,

Thank you for sharing your concern with us.

I was able to reproduce this issue at my end using the latest version of Aspose.Tasks for .NET 8.0.0 and have logged it as TASKS-33887 in our issue tracking system for further investigation by our development team. Once there is any information available in this regard, I'll update you here via this thread.

We are sorry for any inconvenience caused to you.

The issues you have found earlier (filed as TASKS-33887) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.