I need to export custom columns from an MPP to a CSV but the system only exports the following columns.
I.D; Name of the homework; Outline_Level; Duration; Start date; Finish date; Percent_Comp; Cost; Work
The columns I have in the MPP file are as follows:
The code I use is the following:
<?php
namespace Aspose\Tasks\WorkingWithProjects;
use com\aspose\tasks\Project as Project;
use com\aspose\tasks\SaveFileFormat as SaveFileFormat;
class SaveProjectDataToExcel{
public static function run($dataDir=null){
$dataDir = __DIR__ . '/data/Proyecto.mpp';
# Instantiate project object
$project = new Project($dataDir);
# Save the Project as XLSX
$saveFileFormat=new SaveFileFormat();
$project->save(__DIR__ . "/data/Project.csv", $saveFileFormat->CSV);
}
}
?>
This issue shows that you are not using license in your testing that is why getting all dates in year 2000 as mentioned here. You can avoid all the evaluation limitations by getting a 30 days temporary license. Please give a try to the sample codes with valid license and share the feedback.
We are afraid that columns which are exported to CSV are fixed and cannot be configured. You may please use own logic to read data from project file using Aspose.Tasks and export required columns data to a text file.