Saving Project Data to CSV and Text Formats in PHP

Aspose.Tasks - Saving a Project as CSV

To Save a Project as CSV using Aspose.Tasks Java for PHP, call save_to_csv method of SaveProjectDataToOtherFormats module. Here you can see example code.

PHP Code

1$project = new Project('test_tasks.mpp');
2$saveFileFormat = new SaveFileFormat();
3$project->save("Project.csv", $saveFileFormat->CSV);
4print "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 PHP, call save_to_text method of SaveProjectDataToOtherFormats module. Here you can see example code.

PHP Code

1$project = new Project('test_tasks.mpp');
2$saveFileFormat = new SaveFileFormat();
3$project->save("Project.txt", $saveFileFormat->TXT);
4print "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:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.