Export DataBar, ColorScale and IconSet Conditional Formatting while Excel to HTML Conversion with Node.js via C++
Contents
[
Hide
]
You can export DataBar, ColorScale and IconSet Conditional Formatting while converting your Excel file into HTML. This feature is partially supported by Microsoft Excel but Aspose.Cells for Node.js via C++ supports it fully.
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.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
// Specify the file path
const filePath = path.join(dataDir, "sample.xlsx");
// Load your sample excel file in a workbook object
const wb = new AsposeCells.Workbook(filePath);
// Save it in HTML format
wb.save(path.join(dataDir, "ConvertingToHTMLFiles_out.html"), AsposeCells.SaveFormat.Html);