PHP의 리소스 사용 또는 시트보기 렌더링
Contents
[
Hide
Show
]Aspose.Tasks- 렌더링 리소스 사용
Aspose.Tasks java for php를 사용하여 리소스 사용을 렌더링하려면 renderresourceusageandsheetview 모듈의 render_resource_usage 메소드를 호출하십시오. 여기에서 예제 코드를 볼 수 있습니다.
PHP 코드
1$ project = 새 프로젝트 ( 'test_tasks.mpp');
2
3$ 옵션 = 새로운 pdfsaveoptions ();
4
5$ timescale = new TimesCale ();
6
7$ 옵션-> settimesCale ($ timescale-> days);
8
9$ presentationformat = new PresentationFormat ();
10
11$ 옵션-> setPresentationFormat ($ presentationFormat-> ResourceUsage);
12
13$ project-> 저장 ( "result_days.pdf", $ 옵션);
14
15$ 옵션-> settimesCale ($ timescale-> Thirdsofmonths);
16
17$ project-> 저장 ( "result_thirdsofmonths.pdf", $ 옵션);
18
19$ 옵션-> settimesCale ($ timescale-> 달);
20
21$ project-> 저장 ( "result_months.pdf", $ 옵션);
22
23"생성 된 리소스 사용 파일"인쇄;
Aspose.Tasks- 렌더링 리소스 시트보기
Aspose.Tasks java for php를 사용하여 리소스 시트보기를 렌더링하려면 renderresourceusageandsheetview 모듈의 render_resource_sheetview 메소드를 호출하십시오. 여기에서 예제 코드를 볼 수 있습니다.
PHP 코드
1$ project = 새 프로젝트 ( 'test_tasks.mpp');
2
3$ 옵션 = 새로운 pdfsaveoptions ();
4
5$ presentationformat = new PresentationFormat ();
6
7$ 옵션-> setPresentationFormat ($ presentationFormat-> resourcesheet);
8
9$ project-> 저장 ( "result.pdf", $ 옵션);
10
11"생성 된 리소스 시트보기 파일"인쇄;
실행 코드 다운로드
다운로드 렌더링 리소스 사용 및 리소스 시트보기 (Aspose.Tasks) 아래 언급 된 소셜 코딩 사이트에서 :