Rendering Task Usage View in Ruby

Aspose.Tasks - Rendering Task Usage View

To render Task Usage View using Aspose.Tasks Java for Ruby, simply invoke RenderTaskUsageView module. Here you can see example code.

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2options = Rjb::import('com.aspose.tasks.PdfSaveOptions').new
 3options.setTimescale(Rjb::import('com.aspose.tasks.Timescale').Days)
 4options.setPresentationFormat(Rjb::import('com.aspose.tasks.PresentationFormat').TaskUsage)
 5project.save("task_days.pdf", options)
 6options.setTimescale(Rjb::import('com.aspose.tasks.Timescale').ThirdsOfMonths)
 7project.save("task_thirdsOfMonths.pdf", options)
 8options.setTimescale(Rjb::import('com.aspose.tasks.Timescale').Months)
 9project.save("task_months.pdf", options)
10puts "Created task usage view files."

Download Running Code

Download Rendering Task Usage View (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.