Dear Support team ,
I am testing the trial version of Aspose.task. I need to get the task guid for some particular task. There is no method available if i am not wrong. can you please guide me ?
Regards,
Madni
Hi Madni,
Dear Sergey,
Many thanks for your satisfactory reply. One more problem that i am facing using the following code :
ProjectReader rdr = new ProjectReader();
FileStream St = new FileStream(“c:\test.mpp”, FileMode.Open);
Project prj = rdr.Read(St);
St.Close();
ArrayList alTasks =
prj.RootTask.Children;
foreach (Task tskCh in alTasks)
{
//i am only getting top level task in this loop instead of having all the tasks
}
I am only getting the top level task instead of having all the children tasks. Is it the limitation of the trial version ?
Regards,
Madni
Hi Madni,
Hi sergey ,
I have just gone through the documentation for the class childtaskscollector. How would i use its functions so as to get the tasks collection ?
Hi Madni,
You can use it as an ITreeAlgorithm parameter for TaskUtils.Apply
method:
using System;
using System.Collections;
using System.Text;
using Aspose.Tasks;
using Aspose.Tasks.Util;
namespace ChildTaskCollectorSample
{
class Program
{
static void Main(string[] args)
{
ProjectReader reader = new ProjectReader();
Project project = reader.Read("Project1.mpp");
ChildTasksCollector collector = new ChildTasksCollector();
TaskUtils.Apply(project.RootTask, collector, 0);
foreach (Task task in collector.Tasks)
Console.WriteLine(task.Name);
Console.WriteLine("Press ENTER to exit.");
Console.ReadLine();
}
}
}
See a resulting screenshot below.
Hi Madni,
The issues you have found earlier (filed as 15733) 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.