Creating an Empty Project File in Ruby

Aspose.Tasks - Creating an Empty Project File

To create an Empty Project File using Aspose.Tasks Java for Ruby, simply invoke CreateEmptyProject module. Here you can see example code.

1project = Rjb::import('com.aspose.tasks.Project').new
2project_stream =  Rjb::import('java.io.FileOutputStream').new("Project1.xml")
3project.save(project_stream, Rjb::import('com.aspose.tasks.SaveFileFormat').XML)
4project_stream.close()
5puts "Created project Successfully."

Download Running Code

Download Creating an Empty Project File (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.