تحويل ملف إكسل إلى HTML
Contents
[
Hide
]
تحويل ملف إكسل إلى HTML
توفر واجهة برمجة التطبيقات Aspose.Cells for Python via Java القدرة على تحويل ملفات إكسل إلى مستندات HTML. لهذا الغرض، توفر واجهة البرمجة الـHtmlSaveOptions التي تسمح للمطورين بالتحكم في عدة جوانب من الإخراج في HTML.
القطعة البرمجية التالية توضح استخدام فئة HtmlSaveOptions لتصدير ملفات إكسل إلى تنسيق 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
source_directory = "Examples/SampleFiles/SourceDirectory/" | |
output_directory = "Examples/SampleFiles/OutputDirectory/" | |
save_options = HtmlSaveOptions(SaveFormat.HTML) | |
workbook = Workbook(source_directory + "Book1.xlsx") | |
workbook.save(output_directory + "ConvertingToHTMLFiles_out.html", save_options) |