Konvertera Excel till HTML
Contents
[
Hide
]
Konvertera Excel till HTML
Aspose.Cells for Python via Java API ger möjlighet att konvertera Excel-filer till HTML-dokument. För detta tillhandahåller APIHtmlSaveOptions klass som tillåter utvecklare att kontrollera flera aspekter av utdata HTML.
Följande kodavsnitt visar användningen avHtmlSaveOptionsklass för att exportera Excel-filer till formatet 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) |