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

Free Support Forum - aspose.com

I want to get a wbslevel


Hi My name is dongsoon park.

Thank you for your fast reply.
Our company will buy license in a month.

So i am developing pilot program.

I have a another question.
If i read MS Proejct file, I want to get a wbslevel. so i used below function.
But i can't get a level value. ( There is a level value In Ms Project file)

tsk.getWbsLevel()

Please answer me the question.
Have a nice day.

Hi Dongsoon,


Thank you for contacting Aspose support again.

Following is the sample code that can be used to get the level information. Could you please give it a try and let us know your feedback?

Project prj = new Project(“D:/Aspose/ProjectWbs.mpp”);

// Create a ChildTasksCollector instance
ChildTasksCollector collector = new ChildTasksCollector();

//Use TaskUtils to get all children tasks in RootTask
TaskUtils.apply(prj.getRootTask(), collector, 0);

java.util.List tasks = collector.getTasks();
int iSize = tasks.size();

// Parse through all the collected tasks
for(int i = 0 ; i < iSize; i++)
{
Task tsk = (Task) tasks.get(i);
System.out.println("Outline Number = " + tsk.getOutlineNumber());
System.out.println("Outline Level = " + tsk.getOutlineLevel());
}