レンダリングタスクシートビュー

JavaのAspose.Tasksは、PDFなどのさまざまな形式へのレンダリングプロジェクトタスクをサポートしています。タスクシートは、Aspose.TasksのPresentionFormatを使用してレンダリングできます。

レンダリングタスクシートビュー この記事のコードスニペットは、割り当てられたリソースを備えた多くのタスクを備えたソースMPPファイルを読み取り、次の手順を使用してPDFを出力します。

  1. プロジェクトリーダーのインスタンスを作成します。
  2. ソースMPPファイルをお読みください。
  3. 必要なタイムスケール設定でSaveOptionsオブジェクトを開始します。
  4. プレゼンテーション形式をTasksheetに設定します。
  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.