Browse our Products

Aspose.Tasks for Python via .NET 24.12 Release Notes

All Changes

KeySummaryIssue Type
TASKSNET-11302Add an ability to customize font of text labels of task bars in Gantt chartEnhancement
TASKSNET-11226Fix TimescaleTier.Alignment is not taken into account when rendering timescale date labelsEnhancement
TASKSNET-11194Enable TIFF generation for *nix environment + net6.0 target frameworkEnhancement
TASKSNET-11355Fix TimescaleTier time period is rendered incorrectly at the border of the pagesBug
TASKSNET-11347Fix empty column is inserted at index 26 when saving a project to XLSX formatBug
TASKSNET-11282Fix incorrect position of task bars when rendering Gantt ChartBug
TASKSNET-11277Fix gridline`s NormalColor is not applied when rendering Gantt chartBug
TASKSNET-11246Fix calculation of a formula which reference Baseline2 Start \ Baseline2 Finish fieldsBug
TASKSNET-11225Fix missing timescale text label when timescale’s start is not aligned with timescale unit’s startBug

Public API and Backwards Incompatible Changes

The following public methods and properties were added:Description
aspose.tasks.visualization.TimescaleTier.render_label_on_each_pageGets or sets flag that defines whether date labels should be rendered on each page when a time period spans over several pages.
The following public methods and properties were deleted:Description
aspose.tasks.saving.SaveOptions.legend_on_each_page

Examples and additional notes

Related issue: TASKSNET-11226 - Fix TimescaleTier.Alignment is not taken into account when rendering timescale date labels

Prior to 24.12 labels in timescale in Gantt chart were rendered with “CENTER” alignment. Now labels are rendered according to TimescaleTier.alignment property.

The following code snippet demostrates how to adjust ‘TimescaleTier.alignment’ setting:

import aspose.tasks as tsk

project = tsk.Project("input.mpp")
iarchive = cast(zp.IArchive, archive)
gantt_chart_view = cast(tsk.GanttChartView, project.views.get_by_name("&Gantt Chart"))

gantt_chart_view.bottom_timescale_tier.alignment = tsk.visualization.HorizontalStringAlignment.NEAR
gantt_chart_view.middle_timescale_tier.alignment = tsk.visualization.HorizontalStringAlignment.FAR

options = tsk.saving.PdfSaveOptions()
options.view_settings = gantt_chart_view

project.save("output.pdf", options)