DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeyi Excel den HTML e Dönüşüm Sırasında Dışa Aktarın

Excel’den HTML’ye Databar, ColorScale ve IconSet Koşullu Biçimlendirmeyi Dışa Aktar

Aşağıdaki ekran görüntüsü, DataBar, ColorScale ve IconSet Koşullu Biçimlendirme ile olan örnek excel dosyasını göstermektedir. Verilen bağlantıdan örnek excel dosyasını indirebilirsiniz.

todo:image_alt_text

Aşağıdaki ekran görüntüsü, Aspose.Cells çıktı HTML dosyasının DataBar, ColorScale ve IconSet Koşullu Biçimlendirme’yi göstermektedir. Görebileceğiniz gibi, bu, örnek excel dosyası ile tamamen aynı şekilde görünmektedir.

todo:image_alt_text

Örnek Kod

Aşağıdaki örnek kod, Excel’den HTML’ye dönüşüm yapar. Normal bir Excel’den HTML’ye dönüşümüdür.

// 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.");

İlgili Makale