Rendern Sie eine Farbverlaufsfüllung für das WordArt-Objekt, während Sie Tabellenkalkulationen in HTML konvertieren
Contents
[
Hide
]
Mögliche Nutzungsszenarien
Vor Aspose.Cells 17.1 hat Aspose.Cells keine Verlaufsfüllung der Wortkunst gerendert, wenn die Excel-Datei in das HTML-Format konvertiert wurde. Seit der Veröffentlichung von Aspose.Cells 17.1 wird Wortkunst-Verlaufsfüllung unterstützt. Der folgende Screenshot vergleicht die Auswirkung auf die Verlaufsfüllung durch Konvertieren der Excel-Datei mit Aspose.Cells 17.1 und der älteren Version.
Rendern Sie Verlaufsfüllung für das WordArt-Objekt, während Sie Tabellenkalkulationen in HTML konvertieren
Der folgende Beispielcode konvertiert dieExcel-Quelldatei hineinAusgabeformat HTML. Die Excel-Quelldatei enthält ein Wortkunstobjekt mit Verlaufsfüllung, wie im obigen Screenshot gezeigt.
Beispielcode
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"); |