MPPをSVGに変換する方法

Scalable Vector Graphics(SVG)は、2次元グラフィックスをサポートするXMLベースのベクトル画像形式です。そのスケーラビリティと高解像度のために、Web環境と印刷環境で広く使用されています。

.netのasophes.tasksは、Microsoftプロジェクト(MPP)ファイルのエクスポートをSVG形式に完全にサポートします。この機能により、開発者はガントチャートなどのプロジェクトビューをスタンドアロンベクトルグラフィックスにレンダリングできます。これらのグラフィックは、Webアプリケーション、レポート、または品質を失うことなく印刷することができます。

SVGとしてプロジェクトを保存

プロジェクトクラスは、プロジェクトをさまざまな形式で保存するために使用される保存方法を公開します。保存方法により、SaveFileFormat Enumerationタイプを使用して、プロジェクトデータをSVG形式にレンダリングできます。

プロジェクトをSVGに保存するには:

  1. Microsoftプロジェクトファイルをロードします。
  2. SaveFileFormat.svgを使用して、プロジェクトをSVGに保存します。

次のコード行は、C#を使用してこれを達成する方法を示しています。

Using SvgOptions to Customize Output

The SvgOptions class allows you to customize how the output SVG is rendered. For example, you can specify which pages to render or change the output timescale.

Key properties include:

Conclusion

Aspose.Tasks for .NET makes it easy to convert Microsoft Project files into high-quality vector graphics. The SVG format is ideal for scenarios where scalable and embeddable visualizations are required. For more control over the output, use the SvgOptions class to fine-tune rendering behavior.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.