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:
- 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.
- The converted XML file is opened in MSP and it showed the same start date 2012-09-20.
- 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
}
}
{
//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
}
}
Please feel free to write us back if you have any other query related to Aspose.Tasks.