Export DataBar, ColorScale and IconSet Conditional Formatting while Excel to HTML Conversion
Export DataBar, ColorScale and IconSet Conditional Formatting while Excel to HTML Conversion
The following screenshot shows the sample excel file with DataBar, ColorScale and IconSet Conditional Formatting. You can download the sample excel file from the given link.
The following screenshot shows the Aspose.Cells output HTML file showing DataBar, ColorScale and IconSet Conditional Formatting. As you can see, it looks exactly like sample excel file.
Sample Code
The following sample code converts the sample excel file into HTML which is just a normal Excel to HTML conversion.
// 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); |