Making a Standard Calendar in Ruby

Aspose.Tasks - Making a Standard Calendar

To create a Standard Calendar using Aspose.Tasks Java for Ruby, simply invoke CreateStandardCalendar module. Here you can see example code.

1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2cal1 = project.getCalendars().add("My Cal")
3Rjb::import('com.aspose.tasks.Calendar').makeStandardCalendar(cal1)
4project.save("CreateStandardCalendar.xml", Rjb::import('com.aspose.tasks.SaveFileFormat').XML)
5puts "Created standard calendar, please check the output file."

Download Running Code

Download Making a Standard Calendar (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.