ExcelをHTMLに変換
Contents
[
Hide
]
ExcelをHTMLに変換
Aspose.Cells for Python via Java APIはExcelファイルをHTMLドキュメントに変換する機能を提供します。このためにAPIはHtmlSaveOptionsクラスを提供し、開発者が出力HTMLのいくつかの側面を制御できるようにします。
以下のコードスニペットは、HtmlSaveOptionsクラスを使用してExcelファイルをHTML形式にエクスポートする方法を示しています。
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
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) |