Reading Table Data from MPP Files

Aspose.Tasks - Reading Table Data from MPP files

To read Table Data from MPP files using Aspose.Tasks Java for PHP, simply invoke ReadingTableData module. Here you can see example code.

PHP Code

 1$project = new Project('test_tasks.mpp');
 2
 3$t1 = $project->getTables()->toList()->get(0);
 4
 5print "Table Fields Count" . (string)$t1->getTableFields()->size();
 6
 7$f = $t1->getTableFields()->get(0);
 8
 9print "Field width: " . (string)$f->getWidth();
10
11print "\nField Title: " . (string)$f->getTitle();
12
13print "\nField Title Alignment: " . (string)$f->getAlignTitle();
14
15print "\nField Align Data: " . $f->getAlignData();
16
17$f = $t1->getTableFields()->get(1);
18
19print "\nField width: " . (string)$f->getWidth();
20
21print "\nField Title: " . (string)$f->getTitle();
22
23print "\nField Title Alignment: " . (string)$f->getAlignTitle();
24
25print "\nField Align Data: " . (string)$f->getAlignData();

Download Running Code

Download Reading Table Data from MPP files (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.