Supercharged CSV Export
Aspose.Tasks for C++ 24.4 helps Windows developers take a more versatile approach to exporting data to CSV format with the FieldHelper.GetDefaultFieldTitle
method and simplifies field title retrieval. Please check out the following code sample to learn how to export MPP to CSV on Windows 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*
Enhanced Legend Control
With this C++ project management API release for Windows, the new LegendDrawingOptions
property offers finer 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*
Updated Material Resource Assignment
Developers can now simplify project management in C++ apps and handle 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.
Get started with Aspose.Tasks for C++ 24.4 on Windows today and take control of project management within your C++ 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.