スプレッドシートを HTML に変換しながらワードアートのグラデーション塗りつぶしをレンダリングする
Contents
[
Hide
]
考えられる使用シナリオ
Aspose.Cells 17.1 より前は、Excel ファイルが HTML 形式に変換されたときに、Aspose.Cells はワード アートのグラデーション塗りつぶしをレンダリングしませんでした。 Aspose.Cells 17.1 のリリース以降、ワード アートのグラデーション塗りつぶしがサポートされています。次のスクリーンショットは、Aspose.Cells 17.1 と古いバージョンを使用して Excel ファイルを変換することによるグラデーション塗りつぶしの効果を比較しています。
スプレッドシートを HTML に変換しながら、ワードアートのグラデーション塗りつぶしをレンダリングする
次のサンプル コードは、ソースエクセルファイルの中へ出力 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"); |