Upgraded CSV Export
Aspose.Tasks for C++ 24.4 allows macOS developers to work with a refined approach to exporting data to CSV format with the FieldHelper.GetDefaultFieldTitle
method and facilitates field title retrieval. Please check out the following code sample to learn how to export MPP to CSV on the macOS platform seamlessly.
auto project = System::MakeObject<Project>(System::String(u"test.mpp"));
auto options = System::MakeObject<CsvOptions>();
options->set_TextDelimiter(Aspose::Tasks::Saving::CsvTextDelimiter::Tab);
auto view = project->get_DefaultView();
options->set_View(ProjectView::GetDefaultGanttChartView());
options->get_View()->get_Columns()->Clear();
for (auto&& t : view->get_Table()->get_TableFields())
{
System::String columnTitle = System::String::IsNullOrEmpty(t->get_Title()) ? FieldHelper::GetDefaultFieldTitle(t->get_Field()) : t->get_Title();
options->get_View()->get_Columns()->Add(System::MakeObject<GanttChartColumn>(columnTitle, 10, t->get_Field()));
}
project->Save(u"output.csv", options);
Source*
Streamlined Legend Control
The latest C++ project management API update for macOS brings the new LegendDrawingOptions
property which provides better control over legend rendering in exported views, including options for showing legends on every page, after the last page, or according to specific view settings. The following code sample highlights the property usage and ensures the legend isn’t drawn on any resultant PDF document page.
auto project = System::MakeObject<Project>(System::String(u"test.mpp"));
auto view = project->get_Views()->GetByName(u"&Gantt Chart");
auto so = System::MakeObject<PdfSaveOptions>();
so->set_LegendDrawingOptions(Aspose::Tasks::Saving::LegendDrawingOptions::NoLegend);
so->set_StartDate(project->get_StartDate());
so->set_EndDate(project->get_FinishDate());
so->set_ViewSettings(view);
// The legend is not rendered.
project->Save(u"output.pdf", so);
Source*
Simplified Material Resource Assignment
Empower project management workflows on macOS and manage material resources with variable consumption rates more effectively using ResourceAssignment.SetMaterialResourceUnits
method.
Essential Bug Fixes
We have addressed critical bugs and issues to ensure a more stable and reliable API usage experience.
Start taking control of your C++ project management apps on macOS by downloading Aspose.Tasks for C++ 24.4 today!
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Tasks for C++ 24.4 Release Notes.