Prevenire l esportazione del contenuto di fogli nascosti durante il salvataggio in HTML con Node.js tramite C++

Contents
[ ]

Aspose.Cells for Node.js via C++ fornisce la proprietà HtmlSaveOptions.getExportHiddenWorksheet(). Per impostazione predefinita, è impostata su true e i fogli nascosti vengono esportati in HTML. Se la imposti su false, Aspose.Cells non esporterà i contenuti dei fogli nascosti.

const path = require("path");
const AsposeCells = require("aspose.cells.node");

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
// Create workbook object
const workbook = new AsposeCells.Workbook(path.join(dataDir, "WorkbookWithHiddenContent.xlsx"));

// Do not export hidden worksheet contents
const options = new AsposeCells.HtmlSaveOptions();
options.setExportHiddenWorksheet(false);

// Save the workbook
workbook.save(path.join(dataDir, "HtmlWithoutHiddenContent_out.html"), options);