This release of the Aspose.Tasks for Python via .NET API (v24.4) brings feature enhancements for managing project tasks in Python applications on Windows x32 systems.
CSV Export Enhancements
The newest Python project management API version enables the seamless inclusion of field titles in your exported CSV files with the new FieldHelper.GetDefaultFieldTitle
method on 32-bit Windows 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*
Advanced Legend Control in PDF Documents
Obtain accurate control over legend rendering in exported PDF documents with the newly added LegendDrawingOptions
property in Aspose.Tasks for Python via .NET 24.4. You can choose 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 Windows x32 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*
Accurate Material Resource Units
You can now set variable consumption rates for material resources using the new ResourceAssignment.SetMaterialResourceUnits
method within your Python applications running on the Windows x32 platform.
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.