작업 시트보기 렌더링

Aspose.Tasks for Java는 PDF와 같은 다양한 형식으로 프로젝트 작업을 렌더링하는 것을 지원합니다. 작업 시트는 Aspose.Tasks 의 presentationformat을 사용하여 렌더링 할 수 있습니다.

렌더링 작업 시트보기 이 기사의 코드 스 니펫은 리소스가 할당 된 여러 작업이있는 소스 MPP 파일을 읽고 다음 단계를 사용하여 PDF를 출력하도록합니다.

  1. 프로젝트 리더의 인스턴스를 만듭니다.
  2. 소스 MPP 파일을 읽으십시오.
  3. 필요한 시간 스케일 설정으로 SaveOptions 객체를 시작하십시오.
  4. 프레젠테이션 형식을 작업 시트로 설정하십시오.
  5. 프로젝트를 PDF 출력으로 렌더링하십시오.
1// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java
2// The path to the documents directory.
3String dataDir = Utils.getDataDir(RenderTaskSheet.class);
4
5Project project = new Project(dataDir + "NewProductDev.mpp");
6SaveOptions options = new PdfSaveOptions();
7options.setPresentationFormat(PresentationFormat.TaskSheet);
8// See the result attached
9project.save(dataDir + "taskSheet.pdf", options);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.