Exportera DataBar, ColorScale och IconSet villkorsstyrd formatering under konvertering av Excel till HTML med Node.js via C++
Exportera DataBar, ColorScale och IconSet villkorlig formatering vid Excel till HTML-omvandling
Den följande skärmbilden visar provexelfilen med DataBar, ColorScale och IconSet Conditional Formatting. Du kan ladda ner provexelfilen från den angivna länken.
Den följande skärmbilden visar Aspose.Cells utdata-HTML-fil som visar DataBar, ColorScale och IconSet Conditional Formatting. Som du kan se ser den ut precis som provexelfilen.
Exempelkod
Följande kodexempel konverterar exempel-Excelfilen till HTML, vilket är en vanlig Excel till HTML-konvertering.
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);