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

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

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

 1project = rjb :: import( 'com.Aspose.Tasks.project')new( 'test_tasks.mpp')
 2
 3Presention_format = rjb :: import( 'com.Aspose.Tasks.presentationformat')
 4
 5Timescale = rjb :: import( 'com.Aspose.Tasks.timescale')
 6
 7「ページ数」= " + project.getPageCount(Presention_format.resourceusage、timescale.days).to_s
 8
 9「ページ数」= " + project.getPageCount(presention_format.resourceusagetimescale.months).to_s
10
11「ページ数」= " + project.getPageCount(presention_format.resourceusage、timescale.thirdsofmonths).to_s

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

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

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.