프로젝트에서 페이지 수를 얻으십시오
Contents
[
Hide
Show
]Aspose.Tasks- 프로젝트에서 페이지 수 받기
Aspose.Tasks java for Ruby을 사용하여 프로젝트에서 페이지 수를 얻으려면 getNumberOfPages 모듈을 호출하십시오. 여기에서 예제 코드를 볼 수 있습니다.
1project = rjb :: import ( 'com.Aspose.Tasks.project'). new ( 'test_tasks.mpp')
2
3presentation_format = rjb :: import ( 'com.Aspose.Tasks.presentationformat')
4
5timescale = rjb :: import ( 'com.Aspose.Tasks.timescale')
6
7"pages of pages =" + project.getPageCount (presentation_format.resourceusage, timescale.days) .to_s를 넣습니다
8
9"pages of pages =" + project.getPageCount (presentation_format.resourceusage, timescale.months) .to_s를 넣습니다
10
11"pages of pages =" + project.getPageCount (presentation_format.resourceusage, timescale.thirdsofmonths) .to_s를 넣습니다
실행 코드 다운로드
아래에 언급 된 소셜 코딩 사이트 중 하나에서 프로젝트에서 페이지 수를 다운로드하십시오 (Aspose.Tasks) ** :