Free Support Forum -

Can this API save baselines at task level?

I was wondering if I can save a baseline at the task level using this api.

Thank you,

Hi Carlos,

Thanks for writing to Aspose.Tasks support team.

Please have a look at Working with Task Baseline where you can find the usage of TaskBaseline and feel free to write us back if it can fulfill your requirements or not. We will be more than happy to assist you more if required.

I already took a look at this site. There is no sample code for creating a baseline at the project level or at the task level. Can you provide an example of this or is this something that can only be done with the project scheduling engine in Project Pro. Project Pro lets you save about 10 baselines, but I am unsure if your wrapper does this and if it does, does it call on project pro to do the work or do you replicate that logic in the wrapper class you provide? Thanks.

Hi Carlos,

We are sorry for any inconvenience caused to you.

Have a look at the following example which saves task baseline.

TaskBaseline baseline = new TaskBaseline();
baseline.Start = task.Start;
baseline.Finish = task.Finish;
baseline.Duration = task.Duration;
baseline.DurationFormat = task.DurationFormat = TimeUnitType.HourEstimated;

I have attached a sample function which uses above segment. Please try the example and let us know your feedback.