3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/asposetasksjava/Calendars/createcalendar.rb', line 3
def initialize()
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
project = Rjb::import('com.aspose.tasks.Project').new(data_dir + 'test_tasks.mpp')
cal1 = project.getCalendars().add("no info")
cal2 = project.getCalendars().add("no name")
cal3 = project.getCalendars().add("cal3")
project.save(data_dir + "CreateCalendar.xml", Rjb::import('com.aspose.tasks.SaveFileFormat').XML)
puts "Created calendar, please check the output file."
end
|