We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ECDCTS-7965: Is there an equivalent method to setShowProjectSummaryTask()?

Hi,
We are using aspose-tasks-20.7 jar version in our product. We are upgrading it to the 21.10 version.
For method setShowProjectSummaryTask() it is giving error. As from 20.12 release note we found that it is deleted. Is there any other equivalent method available which can help us achieve same functionality ?

Hello @rnara.

You can set the following property on your project object:

project.set(Prj.SHOW_PROJECT_SUMMARY_TASK, true);

With best regards
Vasiliy Sinitsyn
Aspose.Tasks team.

(ECDCTS-7965)
Hi,

Thanks for the reply.
We are using SaveOptions class where we are not able to find method setShowProjectSummaryTask() in aspose-tasks-21.10 version below is the code

SaveOptions pdfSaveOptions = new com.aspose.tasks.PdfSaveOptions();

pdfSaveOptions.setShowProjectSummaryTask(project.get(Prj.SHOW_PROJECT_SUMMARY_TASK));

Is there any other API exposed which can help us achieve same functionality?

Thanks,
Arvind

Hello @rnara

The method setShowProjectSummaryTask was removed from SaveOptions and now you should set this setting in Project object.

Project project = ... // open or create project
project.set(Prj.SHOW_PROJECT_SUMMARY_TASK, true); // set desired value to SHOW_PROJECT_SUMMARY_TASK property 
SaveOptions pdfSaveOptions = new com.aspose.tasks.PdfSaveOptions();
project.save("output_file.pdf", pdfSaveOptions);

output file is saved using value of Prj.SHOW_PROJECT_SUMMARY_TASK property. In this example Project summary task is visible.