Improved CSV Export
Aspose.Tasks for C++ 24.4 lets Linux developers work with a more managed 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 Linux 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*
Simplify Legend Control
This C++ project management API release for Linux includes the new LegendDrawingOptions
property which offers greater 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*
Material Resource Assignment Upgrades
Streamline project management in C++ apps and take care of 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.
Download Aspose.Tasks for C++ 24.4 on Linux today and start taking control of your C++ project management apps.
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.