Excel'i HTML'e Dönüştürürken DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeyi Dışa Aktarma
Contents
[
Hide
]
Excel dosyanızı HTML’e dönüştürürken DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeyi dışa aktarabilirsiniz. Bu özellik Microsoft Excel tarafından kısmen desteklenir, ancak Aspose.Cells tam olarak destekler.
Excel’i HTML’e Dönüştürürken DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeyi Dışa Aktarma
Aşağıdaki ekran görüntüsüörnek excel dosyası DataBar, ColorScale ve IconSet Koşullu Biçimlendirme ile. indirebilirsinizörnek excel dosyası verilen linkten
Aşağıdaki ekran görüntüsü, DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeyi gösteren Aspose.Cells çıkış HTML dosyasını gösterir. Gördüğünüz gibi, tam olarak benziyorörnek excel dosyası.
Basit kod
Aşağıdaki örnek kod, örnek excel dosyasını normal bir değer olan HTML’e dönüştürür.Excel’den HTML’e dönüştürme.
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); |