Converting Excel Files to HTML in Python

Aspose.Cells - Converting Excel File to HTML

To convert Excel to HTML using Aspose.Cells for Java in Python, simply invoke the worksheet_to_html() method of the Converter module.

Python Code

saveFormat = self.SaveFormat

workbook = self.Workbook(self.dataDir + "Book1.xls")

# Save the document in **HTML** format

workbook.save(self.dataDir + "OutBook1.html", saveFormat.HTML)

# Print message

print "\n Excel to HTML conversion performed successfully."

Download Runnable Code

Download Converting Excel File to HTML (Aspose.Cells) from any of the below‑mentioned social coding sites: