ExtendedAttributes Truncated to 255 Characters

Hi

I am writing an application that provides a 3D visualization of a project file. The user can manipulate the 3D environment and I am binding those actions to Tasks in an MSProject file. I am doing this by storing my generated JSON in the Task's ExtendedAttributes.
This works fine until I re-open the project file in MS Project (2013) and save it back out. At this point, project truncates my extended attributes to 255 characters rendering my JSON un-parsable.

I would really like to embed arbitrarily long JSON messages into my project files and have MSProject leave them intact. Does anyone know of a work-around or a better way to achieve my goal?

Regards
Chris

Hi Chris,


Thank you for using Aspose.Tasks.

This seems to be limitation imposed by the Microsoft Project as mentioned here. However, you can use the Task’s Notes fields to set large values that can be retrieved later as well and don’t pose any issue. You can set the Notes field as follow:

Code:

Task task = project.RootTask.Children.Add(“Task”);

task.Set(Tsk.NotesText, “Any value”);

Thank you very much for the suggestion Muhammad. That should be fine for my purposes.


Kind Regards
Chris

Hi Chris,


You are welcome. Please feel free to write to us if you have further query in this regard.