Prevenire l esportazione del contenuto del foglio di lavoro nascosto durante il salvataggio in HTML

Contents
[ ]

Aspose.Cells fornisce la proprietà HtmlSaveOptions.ExportHiddenWorksheet. Per impostazione predefinita, è impostata su true e i fogli di lavoro nascosti vengono esportati in HTML. Se lo si imposta su false, Aspose.Cells non esporterà il contenuto del foglio di lavoro nascosto.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Create workbook object
Workbook workbook = new Workbook(dataDir + "WorkbookWithHiddenContent.xlsx");
// Do not export hidden worksheet contents
HtmlSaveOptions options = new HtmlSaveOptions();
options.ExportHiddenWorksheet = false;
// Save the workbook
workbook.Save(dataDir + "HtmlWithoutHiddenContent_out.html", options);