Export DataBar, ColorScale and IconSet Conditional Formatting while Converting Excel to HTML with Node.js via C++

Export DataBar, ColorScale and IconSet Conditional Formatting while Converting Excel to HTML

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.

todo:image_alt_text

The following screenshot shows the Aspose.Cells output HTML file displaying DataBar, ColorScale and IconSet Conditional Formatting. As you can see, it looks exactly like the sample Excel file.

todo:image_alt_text

Sample Code

The following sample code converts the sample Excel file into HTML, which is 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);