تعطيل الكشف عن التعليقات ذات المستوى الأدنى أثناء الحفظ في HTML
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
عندما تقوم بحفظ ملف Excel الخاص بك في HTML ، فإن Aspose.Cells يكشف عن التعليقات الشرطية ذات المستوى الأدنى. ترتبط هذه التعليقات الشرطية في الغالب بالإصدارات القديمة من Internet Explorer ولا صلة لها بمتصفحات الويب الحديثة. يمكنك أن تقرأ عنها بالتفصيل على الرابط التالي.
يسمح لك Aspose.Cells بإزالة هذه التعليقات التي تم الكشف عنها ذات المستوى الأدنى بتعيينHtmlSaveOptions.DisableDownlevelRevealedCommentsملكية لحقيقي.
تعطيل الكشف عن التعليقات ذات المستوى الأدنى أثناء الحفظ في HTML
يُظهر نموذج التعليمات البرمجية التالي استخدامHtmlSaveOptions.DisableDownlevelRevealedCommentsخاصية. تُظهر لقطة الشاشة تأثير هذه الخاصية عندما لا يتم تعيينها علىحقيقي. يرجى تنزيل ملفنموذج لملف Excelالمستخدمة في هذا الرمز والإخراج 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 | |
// Load sample workbook | |
Workbook wb = new Workbook(srcDir + "sampleDisableDownlevelRevealedComments.xlsx"); | |
// Disable DisableDownlevelRevealedComments | |
HtmlSaveOptions opts = new HtmlSaveOptions(); | |
opts.setDisableDownlevelRevealedComments(true); | |
// Save the workbook in html | |
wb.save(outDir + "outputDisableDownlevelRevealedComments_true.html", opts); |