PHPでリソースの使用またはシートビューをレンダリングします
Contents
[
Hide
Show
]Aspose.Tasks -リソースの使用をレンダリング
Aspose.Tasks java for phpを使用してリソースの使用をレンダリングするには、render_resource_usageのメソッドを呼び出します。ここでは、サンプルコードを見ることができます。
PHPコード
1$ project = new Project( 'test_tasks.mpp');
2
3$ options = new pdfsaveoptions();
4
5$ timescale = new TimesCale();
6
7$ options-> sittimescale($ timescale-> days);
8
9$ PreAspose.Tasks at = new PresentionFormat();
10
11$ options-> setPresentationFormat($ PresentionFormat-> ResourceUsage);
12
13$ project-> save( "result_days.pdf"、$ options);
14
15$ options-> sittimescale($ timescale-> thirdsofmonths);
16
17$ project-> save( "result_thirdsofmonths.pdf"、$ options);
18
19$ options-> sittimescale($ timescale-> months);
20
21$ project-> save( "result_months.pdf"、$ options);
22
23「作成されたリソース使用ファイル」を印刷します。 ";
24Aspose.Tasks
asops.tasks-リソースシートビューのレンダリング
Aspose.Tasks java for phpを使用してリソースシートビューをレンダリングするには、render_resource_sheetviewのメソッドrenderresourceusageandsheetviewモジュールを呼び出します。ここでは、サンプルコードを見ることができます。
PHPコード
1$ project = new Project( 'test_tasks.mpp');
2
3$ options = new pdfsaveoptions();
4
5$ PresentionFormat = new PresentionFormat();
6
7$ options-> setPresentationFormat($ PresentionFormat-> Resourcesheet);
8
9$ project-> save( "result.pdf"、$ options);
10
11「作成されたリソースシートビューファイル」を印刷します。 ";
実行中のコードをダウンロード
ダウンロード**リソースの使用とリソースシートビューのレンダリング(asops.tasks)**以下のいずれかのソーシャルコーディングサイトのいずれかから: