Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Microsoft Excel supports some types of dashed borders that are not supported by web browsers. When you convert such an Excel file into HTML using Aspose.Cells for Node.js via C++, these borders are removed. However, Aspose.Cells can also display such borders using the HtmlSaveOptions.getExportSimilarBorderStyle() property. Set its value to true, and the unsupported borders will also be exported to the HTML file.
The following sample code loads the sample Excel file that contains some unsupported borders, as shown in the screenshot below. The screenshot further illustrates the effect of the HtmlSaveOptions.getExportSimilarBorderStyle() property in the output HTML.

const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "sampleExportSimilarBorderStyle.xlsx");
// Load the sample Excel file
const wb = new AsposeCells.Workbook(filePath);
// Specify HTML Save Options - Export Similar Border Style
const opts = new AsposeCells.HtmlSaveOptions();
opts.setExportSimilarBorderStyle(true);
// Save the workbook in HTML format with the specified HTML Save Options
wb.save("outputExportSimilarBorderStyle.html", opts);
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.