Change Progress of a Task in Ruby

Aspose.Tasks - Change Progress of a Task

To Change Progress of a Task presentation using Aspose.Tasks Java for Ruby, simply invoke ChangeProgressOfTask module. Here you can see example code.

Ruby Code

1project = Rjb::import('com.aspose.tasks.Project').new
2puts project.getCalculationMode()
3task = project.getRootTask().getChildren().add("Task")
4tsk = Rjb::import('com.aspose.tasks.Tsk')
5task.set(tsk.DURATION, project.getDuration(2))
6task.set(tsk.PERCENT_COMPLETE, 50)
7puts "Changed progress of task."

Download Running Code

Download Change Progress of a Task (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.