Please find attached the mpp file that I am trying to read Mpp fle.zip (130.3 KB)
I am not able to read most outer task
Requirements and Development,
Training & Implementation
in the mpp file.
I am reading tasks using
project.getRootTask().getChildren(). With this I am getting all tasks from 2nd level.
Unit Testing… and all 2nd level tasks.
Please suggest a solution so that I can read outer most tasks as well.
We have evaluated the sample MPP file shared by you. We have used the latest version of Aspose.Tasks for Java and able to read the mentioned outer tasks. Following is the sample code snippet and output for your reference.
com.aspose.tasks.Project asProject = new com.aspose.tasks.Project("Microsoft-Project-Example.mpp");
System.out.println(" Page Count: " + asProject.getPageCount());
com.aspose.tasks.TaskCollection allTasks = asProject.getRootTask().getChildren();
for (com.aspose.tasks.Task objTask : allTasks)
System.out.println("GUID: " + objTask.get(com.aspose.tasks.Tsk.GUID));
System.out.println("Reading Task " + objTask.get(com.aspose.tasks.Tsk.NAME));
Page Count: 20
Reading Task Requirements and Development
Reading Task Testing
Reading Task Training & Implementation