Esporta DataBar, ColorScale e IconSet Formattazione condizionale durante la conversione da Excel a HTML
Contents
[
Hide
]
È possibile esportare la formattazione condizionale DataBar, ColorScale e IconSet durante la conversione del file Excel in HTML. Questa funzione è parzialmente supportata da Microsoft Excel ma Aspose.Cells la supporta completamente.
Esporta DataBar, ColorScale e IconSet Formattazione condizionale durante la conversione da Excel a HTML
Lo screenshot seguente mostra ilfile excel di esempio con formattazione condizionale DataBar, ColorScale e IconSet. Puoi scaricare ilfile excel di esempio dal link indicato.
Lo screenshot seguente mostra il file di output Aspose.Cells HTML che mostra la formattazione condizionale DataBar, ColorScale e IconSet. Come puoi vedere, sembra esattamente comefile excel di esempio.
Codice d’esempio
Il seguente codice di esempio converte il file excel di esempio in HTML che è normaleConversione da Excel a HTML.
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); | |
// Specify the file path | |
string filePath = dataDir + "sample.xlsx"; | |
// Load your sample excel file in a workbook object | |
Workbook wb = new Workbook(filePath); | |
// Save it in HTML format | |
wb.Save(dataDir + "ConvertingToHTMLFiles_out.html", SaveFormat.Html); |