Browse our Products

Aspose.Tasks for C++ 24.2 Release Notes

All Changes

KeySummaryIssue Type
TASKSNET-11096Add an ability to set IsPortrait in SaveOptionsEnhancement
TASKSNET-11086Add limitation on length of Filter.Name propertyEnhancement
TASKSNET-11098Fix incorrect reading of timephased data for the specific fileBug
TASKSNET-11090Fix writing of interval Filter criterias with values containing Field referenceBug
TASKSNET-11085Fix writing of Filter.ShowRelatedSummaryRows flag to MPPBug

Public API and Backwards Incompatible Changes

The following public methods and properties were added:Description
Aspose.Tasks.Saving.SaveOptions.IsPortraitGets or sets a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.
Aspose.Tasks.WeekDay.#ctor(Aspose.Tasks.DayType,Aspose.Tasks.WorkingTime[])Initializes a new instance of the class with the specified day type and working time periods.
The following public methods and properties were deleted:Description
Aspose.Tasks.Saving.HtmlSaveOptions.DefaultFontName
Aspose.Tasks.Saving.HtmlSaveOptions.UseProjectDefaultFont
Aspose.Tasks.Saving.HtmlSaveOptions.FontResolveCallback
Aspose.Tasks.Saving.ImageSaveOptions.DefaultFontName
Aspose.Tasks.Saving.ImageSaveOptions.UseProjectDefaultFont
Aspose.Tasks.Saving.ImageSaveOptions.FontResolveCallback
Aspose.Tasks.Saving.PdfSaveOptions.DefaultFontName
Aspose.Tasks.Saving.PdfSaveOptions.UseProjectDefaultFont
Aspose.Tasks.Saving.PdfSaveOptions.FontResolveCallback

Examples and additional notes

Related issue: TASKSNET-11096 - Add an ability to set IsPortrait in SaveOptions.

Boolean property IsPortrait was added to SaveOptions. When saving project to the graphical representation (PDF, HTML, image formats), the property allows to specify whether the page orientation is portrait (true) or landscape (false).

auto project = System::MakeObject<Project>(System::String(u"test.mpp"));
auto saveOptions = System::MakeObject<PdfSaveOptions>();
saveOptions->set_PageSize(PageSize->A4);
saveOptions->set_IsPortrait(true);
project->Save(u"output.pdf", saveOptions);

It is worth mentioning that the View object also has its own page settings which can be set via the MS Project Page Settings dialog.

When SaveOptions.PageSize is set to PageSize.DefinedInView, the page size and orientation are taken from the View.PageInfo.PageSettings.PaperSize and View.PageInfo.PageSettings.IsPortrait properties.