Creating a Calendar in Ruby

Aspose.Tasks - Creating a Calendar

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

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2
 3cal1 = project.getCalendars().add("no info")
 4
 5cal2 = project.getCalendars().add("no name")
 6
 7cal3 = project.getCalendars().add("cal3")
 8
 9project.save("CreateCalendar.xml", Rjb::import('com.aspose.tasks.SaveFileFormat').XML)
10
11puts "Created calendar, please check the output file."

Download Running Code

Download Creating a 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.