I am using Aspose.Tasks to export projects from our project
management system to MS Project files. There are some task-infos
from our database that I would like save in the Text1…Text20
fields in each task.
But unfortunately, I can not save values in the TextN field. Here is some sample code I used to write the TextN fields:
MPXFile file = new MPXFile ();
// Create a summary task
Task task1 = file.AddTask();
task1.Name = this.summaryTaskName.Text;
// Create the first sub task
Task task2 = task1.AddTask();
task2.Name = this.firstTaskName.Text;
task2.Duration = new Duration(this.firstTaskDuration.Text);
task2.Start = System.DateTime.Parse(this.firstTaskStart.Text);
—> task2.Text1 = “test”;
this.Response.ContentType = “text/xml”; //
System.IO.Stream st = this.Response.OutputStream;
// Write the file
All other values such as duration have been saved correctly in the xml file, but the value of Text1 is missing. Any ideas?
Or should I use other fields to save my task-infos?
Thanks in advance