レンダリングリソースシートビュー

Microsoft Projectのリソースシートビューでは、プロジェクトのすべてのリソースに関する詳細を提供します。このビューを使用して、名前、タイプ、標準、残業率、コスト、カレンダーなどのリソース情報を表示できます。 C ++ APIのAspose.Tasksは、PresentationFormat列挙器を使用してリソースシートをPDFにレンダリングすることをサポートします。

リソースシートビューのレンダリング

この記事のコードスニペットは、多くのリソースを備えたソースMPPファイルを読み取り、次の手順を使用してPDFを出力します。

  1. プロジェクトリーダーのインスタンスを作成します。
  2. ソースMPPファイルをお読みください。
  3. PresentionFormatをResourcesheetに設定します。
  4. プロジェクトをPDFを出力します。
 1// Create project instance
 2System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"ResourceSheetView.mpp");
 3    
 4// Set the Presentation Format to Resource Sheet
 5PresentationFormat format = Aspose::Tasks::Visualization::PresentationFormat::ResourceSheet;
 6    
 7// Define rendering options
 8System::SharedPtr<SaveOptions> options = System::MakeObject<PdfSaveOptions>();
 9options->set_PresentationFormat(format);
10project1->Save(dataDir + u"ResourceSheetView_out.pdf", options);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.