Node.js ve C++ kullanarak HTML ye kaydederken Downlevel Revealed Comments i devre dışı bırakın
Olası Kullanım Senaryoları
Excel dosyanızı HTML’ye kaydettiğinizde, Aspose.Cells Downlevel Conditional Comments’ı gösterir. Bu koşullu yorumlar çoğunlukla eski Internet Explorer sürümleriyle ilgilidir ve modern web tarayıcılar için anlamlı değildir. Ayrıntılı bilgi için aşağıdaki bağlantıya bakabilirsiniz.
Aspose.Cells for Node.js via C++, HtmlSaveOptions.getDisableDownlevelRevealedComments() özelliğini true olarak ayarlayarak bu Downlevel Revealed Comments’ı ortadan kaldırmanıza olanak tanır.
HTML’ye kaydederken Downlevel Açıklanan Yorumları Devre Dışı Bırak
Aşağıdaki örnek kod, HtmlSaveOptions.getDisableDownlevelRevealedComments() özelliğinin kullanımını gösterir. Bu özelliğin true olarak ayarlanmadığında etkisini ekran görüntüsü ile görebilirsiniz. Bu kodda kullanılan örnek Excel dosyasını (software.xlsx) ve üretilen çıktı HTML’sini indirerek referans alabilirsiniz.
Örnek Kod
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);