Convert Table to ODS with Node.js via C++
Contents
[
Hide
]
Aspose.Cells supports converting an Excel file with a table to ODS file. You simply have to save the file in ODS format and the generated ODS file will have a functioning table.
Sample Code
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// Source directory
const sourceDir = path.join(__dirname, "data");
// Output directory
const outputDir = path.join(__dirname, "output");
// Open an existing file that contains a table/list object in it
const workbook = new AsposeCells.Workbook(path.join(sourceDir, "SampleTable.xlsx"));
// Save the file
workbook.save(path.join(outputDir, "ConvertTableToOds_out.ods"));
The output ODS file generated by the sample code is attached for your reference.