Render Resource Usage or Sheet Views in Ruby

Aspose.Tasks - Rendering Resource Usage

To render Resource Usage using Aspose.Tasks Java for Ruby, call render_resource_usage method of RenderResourceUsageAndSheetView module. Here you can see example code.

Ruby 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').ResourceUsage)
 5project.save("result_days.pdf", options)
 6options.setTimescale(Rjb::import('com.aspose.tasks.Timescale').ThirdsOfMonths)
 7project.save("result_thirdsOfMonths.pdf", options)
 8options.setTimescale(Rjb::import('com.aspose.tasks.Timescale').Months)
 9project.save("result_months.pdf", options)
10puts "Created resource usage files."

Aspose.Tasks - Rendering Resource Sheet View

To render Resource Sheet View using Aspose.Tasks Java for Ruby, call render_resource_sheetview method of RenderResourceUsageAndSheetView module. Here you can see example code.

Ruby Code

1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2options = Rjb::import('com.aspose.tasks.PdfSaveOptions').new
3options.setPresentationFormat(Rjb::import('com.aspose.tasks.PresentationFormat').ResourceSheet)
4project.save("result.pdf", options)
5puts "Created resource sheet view file."

Download Running Code

Download Rendering Resource Usage and Resource Sheet 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.