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