プロジェクトでページ数を取得します

Aspose.Tasks -プロジェクトでページ数を取得します

Aspose.Tasks java for phpを使用してプロジェクトでページの数を取得するには、getNumberOfPagesモジュールを招きます。ここでは、サンプルコードを見ることができます。

PHPコード

 1$ project = new Project( 'test_tasks.mpp');
 2
 3$ Presention_Format = new PresentionFormat();
 4
 5$ timescale = new TimesCale();
 6
 7「ページ数=」を印刷します。 (string)$ project-> getPageCount($ Presention_format-> resourceUsage、$ timescale-> days);
 8
 9"\ nnumber of pages ="を印刷します。 (string)$ project-> getPageCount($ Presention_format-> resourceUsage、$ timescale-> months);
10
11"\ nnumber of pages ="を印刷します。 (string)$ project-> getPageCount($ Presention_Format-> resourceUsage、$ timescale-> thirdsofmonths);

実行中のコードをダウンロード

ダウンロード**以下のソーシャルコーディングサイトのいずれかから、プロジェクト(Aspose.Tasks)のページ数を取得します。

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.