Last active
February 10, 2021 16:08
-
-
Save aspose-com-gists/84db0c74a505955c066e28e16e72a5d0 to your computer and use it in GitHub Desktop.
Excel to HTML in Node.js
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
var aspose = aspose || {}; | |
aspose.cells = require("aspose.cells"); | |
// Load workbook | |
var workbook = aspose.cells.Workbook("workbook.xlsx"); | |
// Create HTML options and enable grid lines | |
var options = aspose.cells.HtmlSaveOptions(); | |
options.setExportGridLines(true); | |
// Save XLSX as HTML | |
workbook.save("D:\\xlsx-to-html.html", options); |
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
var aspose = aspose || {}; | |
aspose.cells = require("aspose.cells"); | |
// Load workbook | |
var workbook = aspose.cells.Workbook("workbook.xlsx"); | |
// Create HTML options and enable tooltip | |
var options = aspose.cells.HtmlSaveOptions(); | |
options.setAddTooltipText(true); | |
// Save XLSX as HTML | |
workbook.save("D:\\xlsx-to-html.html", options); |
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
var aspose = aspose || {}; | |
aspose.cells = require("aspose.cells"); | |
// Load workbook | |
var workbook = aspose.cells.Workbook("workbook.xlsx"); | |
// Save XLSX as HTML | |
workbook.save("D:\\xlsx-to-html.html"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment