تعطيل الكشف عن التعليقات ذات المستوى الأدنى أثناء الحفظ في 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-.NET | |
//Load sample workbook | |
Workbook wb = new Workbook(sourceDir + "sampleDisableDownlevelRevealedComments.xlsx"); | |
//Disable DisableDownlevelRevealedComments | |
HtmlSaveOptions opts = new HtmlSaveOptions(); | |
opts.DisableDownlevelRevealedComments = true; | |
//Save the workbook in html | |
wb.Save(outputDir + "outputDisableDownlevelRevealedComments_true.html", opts); |