Exportieren Sie die bedingte Formatierung von DataBar, ColorScale und IconSet, während Excel in HTML konvertiert wird

Exportieren Sie die bedingte Formatierung von DataBar, ColorScale und IconSet, während Excel in HTML konvertiert wird

Der folgende Screenshot zeigt dieExcel-Beispieldatei mit bedingter DataBar-, ColorScale- und IconSet-Formatierung. Sie können die herunterladenExcel-Beispieldatei aus dem angegebenen Link.

todo: Bild_alt_Text

Der folgende Screenshot zeigt die Aspose.Cells-Ausgabedatei HTML mit der bedingten Formatierung von DataBar, ColorScale und IconSet. Wie Sie sehen können, sieht es genau so ausExcel-Beispieldatei.

todo: Bild_alt_Text

Beispielcode

Der folgende Beispielcode konvertiert die Beispiel-Excel-Datei in HTML, was nur ein normaler Wert istUmwandlung von Excel in HTML.

// 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.getDataDir(ConvertingToHTMLFiles.class);
// Specify the file path
String filePath = dataDir + "Book1.xlsx";
// Specify the HTML saving options
HtmlSaveOptions sv = new HtmlSaveOptions(SaveFormat.M_HTML);
// Instantiate a workbook and open the template XLSX file
Workbook wb = new Workbook(filePath);
// Save the HTML file
wb.save(dataDir + "output.html", sv);
// Print message
System.out.println("Excel to HTML conversion performed successfully.");

Verwandter Artikel