スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング
Contents
[
Hide
]
可能な使用シナリオ
以前は、Aspose.Cells APIはスプレッドシートをHTML形式に変換する際にWordArt形状のグラデーションフィルをレンダリングすることができませんでした。現在、Aspose.Cells APIではWordArt形状のグラデーションフィルをレンダリングする機能がサポートされています。以下のスクリーンショットは、以前のリリースと最近のリリースにおけるHTMLでのグラデーションフィルの効果を示しています。
スプレッドシートをHTMLに変換する際のWordArtのグラデーションフィルをレンダリング
以下のサンプルコードは、元のエクセルファイルを出力のHTML形式に変換します。元のエクセルファイルには上記のスクリーンショットに示されているようにグラデーションフィルを持つWordArtオブジェクトが含まれています。
サンプルコード
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-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(RenderGradientFillHTML.class) + "articles/"; | |
//Read the source excel file having text with gradient fill | |
Workbook wb = new Workbook(dataDir + "sourceGradientFill.xlsx"); | |
//Save workbook to html format | |
wb.save(dataDir + "out_sourceGradientFill.html"); |