Microsoft Project MPP File Update in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Update Project File
To Update Project File using Aspose.Tasks Java for PHP, simply invoke UpdateProjectFile module. Here you can see example code.
PHP Code
1$project = new Project('test_tasks.mpp');
2$task = $project->getRootTask()->getChildren()->add("Task1");
3$cal = new Calendar();
4$cal = $cal->getInstance();
5$cal->set(2015, 7, 1, 8, 0,0);
6$tsk = new Tsk();
7$task->set($tsk->START, $cal->getTime());
8$cal->set(2015, 7, 1, 17, 0, 0);
9$task->set($tsk->FINISH , $cal->getTime());
10$saveFileFormat = new SaveFileFormat();
11$project->save("AfterLinking.mpp", $saveFileFormat->MPP);
12print "Project file updated, please check the output file.";
Download Running Code
Download Update Project File (Aspose.Tasks) from any of the below mentioned social coding sites: