Retrieving Calendar Exceptions in Ruby

Aspose.Tasks - Retrieving Calendar Exceptions

To get Calendar Exceptions using Aspose.Tasks Java for Ruby, simply invoke GetCalendarExceptions module. Here you can see example code.

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2calendars = project.getCalendars().toList()
 3i = 0
 4while i < calendars.size()
 5  cal = calendars.get(i)
 6  calException = cal.getExceptions().getCount()
 7  if calException > 0
 8    puts "From: " + calException.getFromDate().toString()
 9    puts "To: " + calException.getToDate().toString()
10  end
11  i += 1
12end

Download Running Code

Download Retrieving Calendar Exceptions (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.