見出しを含めて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) |