プロジェクトデータをXAMLにレンダリングします

JavaのAspose.Tasksを使用すると、プロジェクトデータをXAMLファイルにレンダリングできます。このタスクを達成する最も簡単な方法は、project.save関数でsavefileformat.xamlオプションを使用することです。 SaveOptionsを使用して、FitContent、LegendOneachPage、Timescale、Viewなどのオプションを設定できます。 GanttchartViewとGanttchartcolumnを使用して、表示用の列を選択できます。

xamlへのレンダリング

次のコードサンプルは、JavaのAspose.Tasksを使用してこの機能を使用する方法を示しています。

1Project Project = new Project( "renderme.mpp");
2project.save( "newProductdev.xaml"savefileformat.xaml);

xamlをオプションでレンダリング

1Project Project = new Project( "NewProductDev.mpp");
2saveoptions options = new Xamloptions();
3options.setFitContent(true);
4options.setlegendoneachpage(false);
5options.settimescale(timescale.thirdsofmonths);
6project.save( "newProductdev.xaml"options);

異なるプレゼンテーション形式を使用してXAMLにレンダリング

さまざまなプレゼンテーション形式を使用して、プロジェクトをXAMLにレンダリングできます:PresentionFormat.GanttChart、PresentationFormat.TaskUsage、PresentionFormat.ResourceUsage、PresentionFormat.ResourCesheet。

1Project Project = new Project( "NewProductDev.mpp");
2saveoptions options = new Xamloptions();
3options.setPresentationFormat(PresentionFormat.GanttChart);
4project.save( "newProductdev ganttchart.xaml"options);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.