تعطيل تصدير الإطارات النصية وخصائص المستند
Contents
[
Hide
]
يقوم Aspose.Cells for Python via .NET بتصدير نصوص الإطارات وخصائص المستند عند تحويل مصنف إلى HTML. يقدم الإصدار 8.6.0 من Aspose.Cells for Python via .NET خيارًا يمكنك بشكل اختياري تعطيل تصدير نصوص الإطارات وخصائص المستند عن طريق استخدام خاصية HtmlSaveOptions.ExportFrameScriptsAndProperties.
تعطيل تصدير الإطارات النصية وخصائص المستند
الشيفرة النموذجية التالية تتيح لك تعطيل تصدير الإطارات النصية وخصائص المستند. بمجرد تحويل دفتر العمل إلى HTML، لن يحتوي الملف الناتج على أي إطارات نصية أو خصائص مستند.
This file contains hidden or 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
from aspose.cells import HtmlSaveOptions, Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Open the required workbook to convert | |
w = Workbook(dataDir + "Sample1.xlsx") | |
# Disable exporting frame scripts and document properties | |
options = HtmlSaveOptions() | |
options.export_frame_scripts_and_properties = False | |
# Save workbook as HTML | |
w.save(dataDir + "output.out.html", options) |