تعطيل تصدير البرامج النصية للإطار وخصائص المستند
Contents
[
Hide
]
يقوم Aspose.Cells بتصدير البرامج النصية للإطار وخصائص الوثيقة أثناء تحويل مصنف إلى HTML. يقدم الإصدار 8.6.0 من Aspose.Cells for Java خيارًا يتيح لك تعطيل تصدير البرامج النصية للإطار وخصائص الوثيقة اختياريًا. الرجاء استخدامHtmlSaveOptions.setExportFrameScriptsAndProperties () خاصية لتعطيل التصدير.
تعطيل تصدير البرامج النصية للإطار وخصائص المستند
يسمح لك نموذج التعليمات البرمجية التالي بتعطيل تصدير البرامج النصية للإطار وخصائص المستند. بمجرد تحويل مصنف إلى HTML ، لن يحتوي ملف الإخراج على أي برامج نصية للإطار وخصائص المستند.
هنا رمز عينة.
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-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(DisableExporting.class); | |
// 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.setExportFrameScriptsAndProperties(false); | |
// Save workbook as HTML | |
w.save(dataDir + "output.html", options); | |
System.out.println("File saved"); |