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