Developers working on the Linux platform can utilize the feature enhancements introduced in this release of the Aspose.Tasks for Python via .NET API (v24.4) to upgrade their Python applications on Linux systems.
Updated CSV Export
With this Python project management API version, you can experience the seamless inclusion of field titles in your exported CSV files with the new FieldHelper.GetDefaultFieldTitle
method on Linux machines. The following code example demonstrates how you can set up CSV export options and save an MPP file as CSV based on the Gantt Chart view of your project file using the newly added API member.
import aspose.tasks as tsk
project = tsk.Project("data/test.mpp")
options = tsk.saving.CsvOptions()
options.text_delimiter = tsk.saving.CsvTextDelimiter.TAB
view = project.default_view
options.view = tsk.visualization.ProjectView.get_default_gantt_chart_view()
options.view.columns.clear()
for t in view.table.table_fields:
column_title = t.title if t.title else tsk.util.FieldHelper.get_default_field_title(t.field)
options.view.columns.append(tsk.visualization.GanttChartColumn(column_title, 10, t.field))
project.save("output.csv", options)
Source*
Refined Legend Control in PDF Documents
Control legend rendering in exported PDF documents effortlessly with the newly added LegendDrawingOptions
property in Aspose.Tasks for Python via .NET 24.4. You can decide whether to include legends on every page, after the last page, or define rendering based on the view settings.
This code example illustrates the property usage to render the legend on the exported PDF document pages on Linux systems.
import aspose.tasks as tsk
project = tsk.Project("test.mpp")
view = project.views.get_by_name("&Gantt Chart")
view.page_info.legend.legend_on = tsk.visualization.Legend.AFTER_LAST_PAGE
so = tsk.saving.PdfSaveOptions()
so.legend_drawing_options = tsk.saving.LegendDrawingOptions.DEFINED_IN_VIEW
so.start_date = project.start_date
so.end_date = project.finish_date
so.view_settings = view
# The legend is rendered on each page.
project.save("output.pdf", so)
Source*
Accurately Manage Material Resource Units
Set variable consumption rates for material resources within your Python project management apps using the new ResourceAssignment.SetMaterialResourceUnits
method on Linux.
This release of the project management Python API addresses several issues, such as improved handling of MPP file units, legends, and zero-duration tasks, and delivers performance enhancements for a more robust development experience.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Tasks for Python via .NET 24.4 Release Notes.