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')
 2
 3options = Rjb::import('com.aspose.tasks.PdfSaveOptions').new
 4
 5options.setTimescale(Rjb::import('com.aspose.tasks.Timescale').Days)
 6
 7options.setPresentationFormat(Rjb::import('com.aspose.tasks.PresentationFormat').TaskUsage)
 8
 9project.save("task_days.pdf", options)
10
11options.setTimescale(Rjb::import('com.aspose.tasks.Timescale').ThirdsOfMonths)
12
13project.save("task_thirdsOfMonths.pdf", options)
14
15options.setTimescale(Rjb::import('com.aspose.tasks.Timescale').Months)
16
17project.save("task_months.pdf", options)
18
19puts "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.