Save File, Then Reopen. “Project 2013 Gantt chart” is changed. The Code is:
ProjectReader reader = new ProjectReader();
Project project = reader.Read(filePath);
Task task = project.GetTaskById(taskId);
task.SetPercentComplete(progress);
try
{
project.Save(filePath, Aspose.Tasks.Saving.SaveFileFormat.MPP);
}
catch (TasksWritingException ex)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "", string.Format("", ex.LogText));
return;
}