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

Free Support Forum - aspose.com

Can't set values for extended fields Duration1-10

Project2.mpp - is empty Microsoft Project 2013 file, the default settings.
can't set values for extended fields Duration1-10

Aspose.Tasks.License license = new Aspose.Tasks.License();

Project newProject = new Project("Project2.mpp");

Task task = newProject.RootTask.Children.Add(@"test");
ExtendedAttribute extendedAttribute = new ExtendedAttribute
FieldId = ((int) ExtendedAttributeTask.Duration1).ToString(),
Value = "PT16H0M0S",
DurationFormat = TimeUnitType.Day

newProject.Save("Project4.mpp", SaveFileFormat.MPP);
newProject.Save("Project4.xml", SaveFileFormat.XML);

Use the values in different formats, always getting 9175,17 h in mpp file.
For xml correctly imported when opening Microsoft Project 2013


Thank you for contacting Aspose support team.

I have analyzed the code and observed the issue in the output MPP file. This issue is logged under id:TASKS-34185 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-34185) have been fixed in this update.

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