Render Resource Usage or Sheet Views in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Rendering Resource Usage
To render Resource Usage using Aspose.Tasks Java for PHP, call render_resource_usage method of RenderResourceUsageAndSheetView module. Here you can see example code.
PHP Code
1$project = new Project('test_tasks.mpp');
2$options = new PdfSaveOptions();
3$timescale = new Timescale();
4$options->setTimescale($timescale->Days);
5$presentationFormat = new PresentationFormat();
6$options->setPresentationFormat($presentationFormat->ResourceUsage);
7$project->save("result_days.pdf", $options);
8$options->setTimescale($timescale->ThirdsOfMonths);
9$project->save("result_thirdsOfMonths.pdf", $options);
10$options->setTimescale($timescale->Months);
11$project->save("result_months.pdf", $options);
12print "Created resource usage files.";
Aspose.Tasks - Rendering Resource Sheet View
To render Resource Sheet View using Aspose.Tasks Java for PHP, call render_resource_sheetview method of RenderResourceUsageAndSheetView module. Here you can see example code.
PHP Code
1$project = new Project('test_tasks.mpp');
2$options = new PdfSaveOptions();
3$presentationFormat = new PresentationFormat();
4$options->setPresentationFormat($presentationFormat->ResourceSheet);
5$project->save("result.pdf", $options);
6print "Created resource sheet view file.";
Download Running Code
Download Rendering Resource Usage and Resource Sheet View (Aspose.Tasks) from any of the below mentioned social coding sites: