Node.jsを通じたC++でのスプレッドシート変換時のWordArtのグラデーション塗りつぶしのレンダリング
Contents
[
Hide
]
可能な使用シナリオ
Aspose.Cells 17.1以前は、ExcelファイルをHTML形式に変換した際にWordArtのグラデーション塗りつぶしをレンダリングしませんでした。Aspose.Cells 17.1以降は、WordArtのグラデーション塗りつぶしがサポートされました。以下のスクリーンショットは、Aspose.Cells 17.1と旧バージョンを使用してExcelファイルを変換した際のグラデーション塗りつぶしの効果を比較したものです。
スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング
以下のサンプルコードは、ソースExcelファイルを出力HTML形式に変換します。ソースExcelファイルには、上記スクリーンショットのようなグラデーション塗りつぶしのWordArtオブジェクトが含まれています。
サンプルコード
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "sourceGradientFill.xlsx");
// Read the source excel file having text with gradient fill
const workbook = new AsposeCells.Workbook(filePath);
// Save workbook to html format
workbook.save(path.join(dataDir, "out_sourceGradientFill.html"));