スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング

可能な使用シナリオ

Aspose.Cells 17.1以前のバージョンでは、ExcelファイルをHTML形式に変換するとき、ワードアートのグラデーション塗りつぶしがレンダリングされませんでした。Aspose.Cells 17.1のリリース以降、ワードアートのグラデーション塗りつぶしがサポートされています。次のスクリーンショットは、Aspose.Cells 17.1を使用してExcelファイルを変換した場合と古いバージョンを使用した場合のグラデーション塗りつぶしの効果を比較しています。

todo:image_alt_text

スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング

次のサンプルコードは、元のExcelファイル出力HTML形式に変換します。元のExcelファイルにはスクリーンショットに示すようなグラデーション塗りつぶしを持つワードアートオブジェクトが含まれています。

サンプルコード

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Read the source excel file having text with gradient fill
Workbook book = new Workbook(dataDir + "sourceGradientFill.xlsx");
// Save workbook to html format
book.Save(dataDir + "out_sourceGradientFill.html");