Render Resource Usage or Sheet Views in PHP

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
 3$options = new PdfSaveOptions();
 4
 5$timescale = new Timescale();
 6
 7$options->setTimescale($timescale->Days);
 8
 9$presentationFormat = new PresentationFormat();
10
11$options->setPresentationFormat($presentationFormat->ResourceUsage);
12
13$project->save("result_days.pdf", $options);
14
15$options->setTimescale($timescale->ThirdsOfMonths);
16
17$project->save("result_thirdsOfMonths.pdf", $options);
18
19$options->setTimescale($timescale->Months);
20
21$project->save("result_months.pdf", $options);
22
23print "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
 3$options = new PdfSaveOptions();
 4
 5$presentationFormat = new PresentationFormat();
 6
 7$options->setPresentationFormat($presentationFormat->ResourceSheet);
 8
 9$project->save("result.pdf", $options);
10
11print "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:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.