I need to know how to change the MANUAL/AUTO SCHEDULE for a project that I am saving to MPP.
When I create a MS Project with ASPOSE I need to have it in the MANUAL SCHEDULE … but before I finish I need to turn it back to the AUTO SCHEDULE …
Once I am in an MS PROJECT … I can set this by going to “OPTIONS” / “SCHEDULE” / “NEW TASKS CREATED” and then select Manually Scheduled or Auto Schedule.
Hi David,
Thank you for your inquiry.
You can set the project mode to Manual by using the Project’s Calculation mode as shown in the following code sample. But please be noted that during the Automatic mode, all the project calculations are done automatically, while in Manual code, no calculations are done automatically by the API. Please feel free to write to us in case you have any other query/inquiry.
Sample Code:
Project project = new Project(“Homemoveplan.mpp”);
project.CalculationMode = CalculationMode.Manual;
Thank you for your email. When I tried that it said that “CalculationMode” is not a member of ‘Aspose.Task.Project’.
I am writing in VB.net and I entered
_newProject.CalculationMode = CalculationMode.Manual
what am I doing wrong?
I am using Aspose.tasks 2009 version 6.8.0 . 0
thanks
Hi Dave,
Please download the latest version of Aspose.Tasks for .NET 8.0.0 which is the revamped version of Aspose.Tasks. For code migration from earlier versions to this new version, please visit our migration article that contains a number of examples for this purpose. In case of any confusion, please feel free to write to us.