HTML ye Kaydederken Gizli Çalışma Sayfası İçeriğinin Dışa Aktarılmasını Engelleyin

Contents
[ ]

Aspose.Cells, HtmlSaveOptions.ExportHiddenWorksheet özelliğini sağlar. Varsayılan olarak true olarak ayarlanmıştır ve gizli çalışma sayfaları HTML’e dışa aktarılır. Eğer false olarak ayarlarsanız, Aspose.Cells gizli çalışma sayfa içeriğini dışa aktarmaz.

// 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);