Çerçeve Komut Dosyalarını ve Belge Özelliklerini Dışa Aktarmayı Devre Dışı Bırakma

Çerçeve betiklerini ve belge özelliklerini dışa aktarmayı devre dışı bırakın

Aşağıdaki örnek kod, çerçeve komut dosyalarını ve belge özelliklerini dışa aktarmayı devre dışı bırakmanıza olanak tanır. Bir çalışma kitabını HTML’e dönüştürdüğünüzde, çıktı dosyası herhangi bir çerçeve betiği ve belge özelliği içermeyecektir.

// 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);
// Open the required workbook to convert
Workbook w = new Workbook(dataDir + "Sample1.xlsx");
// Disable exporting frame scripts and document properties
HtmlSaveOptions options = new HtmlSaveOptions();
options.ExportFrameScriptsAndProperties = false;
// Save workbook as HTML
w.Save(dataDir + "output.out.html", options);