Get Number of Pages in Project

Aspose.Tasks - Get Number of Pages in Project

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

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2
 3presentation_format = Rjb::import('com.aspose.tasks.PresentationFormat')
 4
 5timescale = Rjb::import('com.aspose.tasks.Timescale')
 6
 7puts "Number of Pages = " + project.getPageCount(presentation_format.ResourceUsage, timescale.Days).to_s
 8
 9puts "Number of Pages = " + project.getPageCount(presentation_format.ResourceUsage, timescale.Months).to_s
10
11puts "Number of Pages = " + project.getPageCount(presentation_format.ResourceUsage, timescale.ThirdsOfMonths).to_s

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.