We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

I have a problem about gePlanStart function

HI



Thank you for your kind answer.





I will share my samle file.

There is yellow color cell that is no start date.

I don’t know why I get a value.

Please answer me the question.









Have a nice day.

Hi Dongsoon,


Thank you for writing to Aspose support.

I have analyzed the sample file and following are my findings:
  1. Converted the “R1212017_01.mpp” to XML format using Microsoft Project 2013 (MSP) and observed the task id 3. It was having start date 2012-09-20T08:00:00.
  2. The converted XML file is opened in MSP and it showed the same start date 2012-09-20.
  3. For further analysis I used VSTO to display the project data as given below and its observed that it displays the same start date 2012-09-20.
static void DisplayStartDateInterop()
{
//Create Application object
Application projectApplication = new Application();
object missingValue = System.Reflection.Missing.Value;

//Open an MPP file
projectApplication.FileOpenEx(@“D:\Aspose\R1212017_01\R1212017_01.mpp”,
missingValue, missingValue, missingValue, missingValue,
missingValue, missingValue, missingValue, missingValue,
missingValue, missingValue, PjPoolOpen.pjPoolReadOnly,
missingValue, missingValue, missingValue, missingValue,
missingValue);

//Create a Project object by assigning active project
Microsoft.Office.Interop.MSProject.Project project = projectApplication.ActiveProject;

//Loop through each task and read information related to tasks
foreach (Microsoft.Office.Interop.MSProject.Task task in project.Tasks)
{
if (task.ID == 3)
{
Console.WriteLine(“Reading Task " + task.Name);
Console.WriteLine(”\nID: " + task.ID);
Console.WriteLine(“Start: " + task.Start);
Console.WriteLine(“Finish: " + task.Finish);
Console.WriteLine(”\n===========================\n”);
}
//Read any other information you need
}
}

Further I created a new sample MPP file using MSP , created few tasks with proper start dates and saved the file. Then again opened the file in MSP and deleted the start date and saved it on disc. When I read the same file using Aspose.Tasks and VSTO, it was displaying the same start date which was actually deleted from the MPP in MSP. This shows that although MSP shows empty start date column but it maintains the date at backend so its not an issue in Aspose.Tasks but some sort of inconsistency in MSP.

Please feel free to write us back if you have any other query related to Aspose.Tasks.