Saving Project Data to CSV and Text Formats in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - Saving a Project as CSV
To Save a Project as CSV using Aspose.Tasks Java for Ruby, call save_to_csv method of SaveProjectDataToOtherFormats module. Here you can see example code.
Ruby Code
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2project.save("Project.csv", Rjb::import('com.aspose.tasks.SaveFileFormat').CSV)
3puts "Saved project data to CSV, please check the output file"
Aspose.Tasks - Saving a Project as Text
To Save a Project as Text using Aspose.Tasks Java for Ruby, call save_to_text method of SaveProjectDataToOtherFormats module. Here you can see example code.
Ruby Code
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2project.save("Project.txt", Rjb::import('com.aspose.tasks.SaveFileFormat').TXT)
3puts "Saved project data to Text, please check the output file"
Download Running Code
Download Saving Project Data to CSV and Text Formats (Aspose.Tasks) from any of the below mentioned social coding sites: