I am able to save a MS Project Gantt chart in .pdf format with Aspose.Tasks but it seems to default to a timescale of days. The souce file is set to [4]days (i.e. every 4 four days in MS Project lingo). Is it possible to get access this setting (Project project = reader.Read(fullPath); in c#) and send it to the Save command (project.Save(fullPath + ".pdf", Project.Saving.SaveFileFormat.PDF); ) so the timescale is reflected in the .pdf file?
Would it be better to save it as an image file, then convert to .pdf to achive the desired result?
Thanks in advance
Hi Matthew,
Thank you for contacting Aspose support team.
Timescale setting facility is available in Aspose.Tasks using SaveOptions.Timescale property. If we save the project with default options, the Timescale.Days setting is used. In this case the upper tier of calendar header will be Weeks and bottom tier will be Days.
If we save the project with Timescale.ThirdsOfMonths option:
ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.JPEG);
options.Timescale = Timescale.ThirdsOfMonths;
project.Save(“project.jpeg”, options);
Here upper tier of calendar header will be Months and bottom tier will be B(eginning) M(iddle) E(nd).
If we save the project with Timescale.Months option:
ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.JPEG);
options.Timescale = Timescale.Months;
project.Save("project.jpeg", options);
Here upper tier of calendar header will be Quarters and bottom tier will be Months.
I am afraid that currently no facility is available to set the timescale count like days = 4 in your example. I have logged it as an enhancement ticket in our issue tracking system under id :TASKS-33620. Development team will analyze the requirement and will share their findings with us. I will write back here as soon as some feedback is received.
I have also added another new feature ticket to read the timescale setting from source MPP/XML file and make it effective in the saved Jpeg/Pdf file. This ticket id is TASKS-33621.
You will be automatically notified once the issue is resolved as these tickets are linked with this thread.
Please feel free to write us back if you have any other query related to Aspose.Tasks.
The issues you have found earlier (filed as TASKS-33620;TASKS-33621) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.