تحويل Excel إلى HTML مع العناوين
Contents
[
Hide
]
تحويل Excel إلى HTML مع عناوين
توفر Aspose.Cells for Python via NET الخيار لتصدير الرؤوس أثناء تحويل Excel إلى HTML. لهذا الغرض ، يمكنك ضبط خاصية الـ HtmlSaveOptions.export_row_column_headings على true. القيمة الافتراضية لخاصية HtmlSaveOptions.export_row_column_headings هي false. تُظهر الصورة التالية الملف الناتج الذي تم إنشاؤه بواسطة الكود التالي.
الكود المثالي
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 | |
# Load sample source file | |
workbook = Workbook(sourceDir + "Book1.xlsx") | |
options = HtmlSaveOptions() | |
options.export_row_column_headings = True | |
# Save the workbook | |
workbook.save(outputDir + "PrintHeadings_out.html", options) |