Microsoft Project MPP File Update in Ruby
Contents
[
Hide
]
Aspose.Tasks - Update Project File
To Update Project File using Aspose.Tasks Java for Ruby, simply invoke UpdateProjectFile module. Here you can see example code.
Ruby Code
project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
task = project.getRootTask().getChildren().add("Task1")
cal = Rjb::import('java.util.Calendar').getInstance()
cal.set(2015, 7, 1, 8, 0,0);
task.set(Rjb::import('com.aspose.tasks.Tsk').START, cal.getTime())
cal.set(2015, 7, 1, 17, 0, 0)
task.set(Rjb::import('com.aspose.tasks.Tsk').FINISH , cal.getTime())
project.save("AfterLinking.mpp", Rjb::import('com.aspose.tasks.SaveFileFormat').MPP)
puts "Project file updated, please check the output file."
Download Running Code
Download Update Project File (Aspose.Tasks) from any of the below mentioned social coding sites: