スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング
Contents
[
Hide
]
可能な使用シナリオ
Aspose.Cells 17.1以前のバージョンでは、ExcelファイルをHTML形式に変換するとき、ワードアートのグラデーション塗りつぶしがレンダリングされませんでした。Aspose.Cells 17.1のリリース以降、ワードアートのグラデーション塗りつぶしがサポートされています。次のスクリーンショットは、Aspose.Cells 17.1を使用してExcelファイルを変換した場合と古いバージョンを使用した場合のグラデーション塗りつぶしの効果を比較しています。
スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング
次のサンプルコードは、元のExcelファイルを出力HTML形式に変換します。元のExcelファイルにはスクリーンショットに示すようなグラデーション塗りつぶしを持つワードアートオブジェクトが含まれています。
サンプルコード
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |