Enhanced CSV Export
Aspose.Tasks for C++ 24.4 allows developers to gain a more versatile approach to exporting data to CSV format with the FieldHelper.GetDefaultFieldTitle
method, simplifying field title retrieval. Please check out the following code sample to learn how to export MPP to CSV on any 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*
Refined Legend Control
The new LegendDrawingOptions
property in this C++ project management API release offers finer control over legend rendering in exported views, including options for displaying 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*
Improved Material Resource Assignment
You can now empower your C++ apps 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.
Download Aspose.Tasks for C++ 24.4 on Windows, Linux, or MacOS today and take control of project management within your C++ applications.
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.