Holen Sie sich eine Anzahl von Seiten im Projekt
Contents
[
Hide
Show
]Aspose.Tasks - Erhalten Sie die Anzahl von Seiten im Projekt
Um eine Anzahl von Seiten im Projekt mit Aspose.Tasks java für Ruby zu erhalten, rufen Sie einfach GetNumberOfPages Modul auf. Hier sehen Sie Beispielcode.
1project = rjb :: import ('com.aspsient.tasks.project'). new ('test_tasks.mpp')
2
3Präsentation_Format = RJB :: Import ('com.asispsis.tasks.PresentationFormat')
4
5timescale = rjb :: import ('com.asispsis.tasks.timescale')
6
7platziert "Anzahl von Pages =" + project.getPageCount (Präsentation_Format.Resourceusage, Timescale.days) .to_s
8
9platziert "Anzahl der Seiten =" + project.getPageCount (Präsentation_Format.Resourceuseage, Timescale.months) .to_s
10
11Puts "Anzahl von Pages =" + project.getPageCount (Präsentation_Format.Resourceusage, Timescale.Thirdsofmonths) .to_s
Download Running Code
Download Anzahl der Seiten im Projekt (Aspose.Tasks) von einer der folgenden erwähnten Social -Coding -Websites: