Disabilita l Esportazione degli Script Frame e delle Proprietà del Documento
Contents
[
Hide
]
Aspose.Cells esporta script frame e proprietà del documento durante la conversione di un documento Excel in HTML. La versione 8.6.0 di Aspose.Cells for .NET introduce un’opzione che consente di disabilitare facoltativamente l’esportazione di script frame e proprietà del documento. Si prega di utilizzare la proprietà HtmlSaveOptions.ExportFrameScriptsAndProperties per disabilitare l’esportazione.
Disabilita l’esportazione degli script frame e delle proprietà del documento
Il seguente codice di esempio ti permette di disabilitare l’esportazione degli script frame e delle proprietà del documento. Una volta convertito un workbook in HTML, il file di output non conterrà alcuno script frame o proprietà del documento.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |