Get Number of Pages in Project in PHP

Aspose.Tasks - Get Number of Pages in Project

To get Number of Pages in Project using Aspose.Tasks Java for PHP, simply invoke GetNumberOfPages module. Here you can see example code.

PHP Code

1$project = new Project('test_tasks.mpp');
2$presentation_format = new PresentationFormat();
3$timescale = new Timescale();
4print "Number of Pages = " . (string)$project->getPageCount($presentation_format->ResourceUsage, $timescale->Days);
5print "\nNumber of Pages = " . (string)$project->getPageCount($presentation_format->ResourceUsage, $timescale->Months);
6print "\nNumber of Pages = " . (string)$project->getPageCount($presentation_format->ResourceUsage, $timescale->ThirdsOfMonths);

Download Running Code

Download Get Number of Pages in Project (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.