事前定義されたページサイズのプロジェクトデータをレンダリングします

JavaのAspose.Tasksは、ガントチャート、タスクの使用、リソース使用、リソースシートなどのプロジェクトビューのレンダリングをサポートしています。たとえば、A0、A1、レターなど。

  • A0

  • A1

  • A2

  • A3

  • A4

  • 元帳

  • 手紙

プロジェクトデータを事前に定義されたページサイズにレンダリング

次のコードサンプルは、プロジェクトのさまざまなビューを事前定義されたページサイズにレンダリングする方法を示しています。

 1string file = "renderme.mpp";
 2
 3Project Project = new Project(file);
 4
 5//プロジェクトをA3サイズにレンダリングします
 6
 7pdfsaveoptions options = new pdfsaveoptions();
 8
 9options.setPresentationFormat(PresentionFormat.GanttChart);
10
11options.setFitContent(true);
12
13options.setPagesize(pagesize.a3);
14
15string resfile = "result_" + "gantt chart" + "_" + pagesize.a3 + ".pdf";
16
17project.save(resfileoptions);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.