تعطيل تصدير الإطارات النصية وخصائص المستند
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"); |