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

Free Support Forum - aspose.com

Export remaing work and actual work to XML not working

Hi,


I am trying export tasks with remaing work and actual work to xml, but not working.

The code:
Project project = new Project();
project.set(Prj.DURATION_FORMAT, TimeUnitType.Hour);
Task rootTask = project.getRootTask();

Resource resource = project.getResources().add(“Resource”);

Task a = rootTask.getChildren().add(“A”);
a.set(Tsk.DURATION, project.getDuration(8));
a.set(Tsk.TYPE, TaskType.FixedDuration);
project.getResourceAssignments().add(a, resource);
a.set(Tsk.ACTUAL_WORK, project.getDuration(8));
a.set(Tsk.REMAINING_WORK, project.getDuration(1));

Task b = project.getRootTask().getChildren().add(“B”);
b.set(Tsk.DURATION, project.getDuration(8));
b.set(Tsk.TYPE, TaskType.FixedDuration);
project.getResourceAssignments().add(b, resource);
b.set(Tsk.ACTUAL_WORK, project.getDuration(7));
b.set(Tsk.REMAINING_WORK, project.getDuration(1));

File temp = new File(“D:\test_work_aspose.xml”);
project.save(temp.getAbsolutePath(), SaveFileFormat.XML);

When I import to ms project the task A with remain work 0hrs and the task B 8hrs.

How to make working correctly?

Hi,


Thank you for contacting Aspose support team.

I have used the sample code to generate the XML file and opened it in MSP 2010. It is observed that the remaining work value issue is reproduced. It is logged as TASKS-34174 in our issue tracking system. for further investigation by the product team. I shall write here as soon as some feedback is received in this regard.

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


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