Sha256: 611e93b8c49a55fa1ed704e9ddd6d55912b0e38fd6a46e11ce6718f9ed5833b0
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
module Asposetasksjava module CreateCalendar def initialize() data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Instantiate project object project = Rjb::import('com.aspose.tasks.Project').new(data_dir + 'test_tasks.mpp') # Define Calendar cal1 = project.getCalendars().add("no info") cal2 = project.getCalendars().add("no name") cal3 = project.getCalendars().add("cal3") # Save the Project project.save(data_dir + "CreateCalendar.xml", Rjb::import('com.aspose.tasks.SaveFileFormat').XML) puts "Created calendar, please check the output file." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposetasksjava-0.0.1 | lib/asposetasksjava/Calendars/createcalendar.rb |