Disabilitare Commenti Downlevel Revealed durante il salvataggio in HTML con Node.js tramite C++

Possibili Scenari di Utilizzo

Quando salvi il file Excel in HTML, Aspose.Cells rivela i Commenti Condizionali Downlevel. Questi commenti condizionali sono rilevanti principalmente per le vecchie versioni di Internet Explorer e irrilevanti per i browser moderni. Puoi leggere i dettagli al seguente link.

Aspose.Cells for Node.js via C++ ti permette di eliminare questi Commenti Downlevel Revealed impostando la proprietà HtmlSaveOptions.getDisableDownlevelRevealedComments() su true.

Disabilita i Commenti Rivelati di Basso Livello durante il Salvataggio in HTML

Il seguente esempio di codice mostra l’uso della proprietà HtmlSaveOptions.getDisableDownlevelRevealedComments(). La schermata mostra l’effetto di questa proprietà quando non è impostata su true. Per favore scarica il file Excel di esempio usato in questo codice e l'output HTML generato per riferimento.

todo:image_alt_text

Codice di Esempio

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

// The path to the documents directory.
const sourceDir = path.join(__dirname, "data");
const outputDir = path.join(__dirname, "output");

// Load sample workbook
const workbook = new AsposeCells.Workbook(path.join(sourceDir, "sampleDisableDownlevelRevealedComments.xlsx"));

// Disable DisableDownlevelRevealedComments
const opts = new AsposeCells.HtmlSaveOptions();
opts.setDisableDownlevelRevealedComments(true);

// Save the workbook in html
workbook.save(path.join(outputDir, "outputDisableDownlevelRevealedComments_true.html"), opts);