Creating a Calendar in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Creating a Calendar
To create a Calendar using Aspose.Tasks Java for PHP, simply invoke CreateCalendar module. Here you can see example code.
1$project = new Project('test_tasks.mpp');
2
3$cal1 = $project->getCalendars()->add("no info");
4
5$cal2 = $project->getCalendars()->add("no name");
6
7$cal3 = $project->getCalendars()->add("cal3");
8
9$saveFileFormat = new SaveFileFormat();
10
11$project->save("CreateCalendar.xml", $saveFileFormat->XML);
12
13print "Created calendar, please check the output file.";
Download Running Code
Download Creating a Calendar (Aspose.Tasks) from any of the below mentioned social coding sites: