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
3$task = $project->getRootTask()->getChildren()->add("Task1");
4
5$cal = new Calendar();
6
7$cal = $cal->getInstance();
8
9$cal->set(2015, 7, 1, 8, 0,0);
10
11$tsk = new Tsk();
12
13$task->set($tsk->START, $cal->getTime());
14
15$cal->set(2015, 7, 1, 17, 0, 0);
16
17$task->set($tsk->FINISH , $cal->getTime());
18
19$saveFileFormat = new SaveFileFormat();
20
21$project->save("AfterLinking.mpp", $saveFileFormat->MPP);
22
23print "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: