Conversione in file MHTML in Python

Aspose.Cells - Conversione in MHTML

Per convertire il foglio di lavoro nel file MHTML utilizzando Aspose.Cells for Java in Python, è sufficiente richiamare il foglio di lavoro_a_mhtml() del modulo Converter.

Python Cod

 saveFormat = self.SaveFormat

# Specify the file path

filePath = self.dataDir + "Book1.xlsx"

# Specify the HTML saving options

sv = self.HtmlSaveOptions(saveFormat.M_HTML)

# Instantiate a workbook and open the template XLSX file

wb = self.Workbook(filePath)

# Save the MHT file

wb.save(filePath + ".out.mht", sv)

\# Print message

print "Excel to MHTML conversion performed successfully."

Scarica il codice in esecuzione

ScaricamentoConversione in MHTML (Aspose.Cells) da uno qualsiasi dei siti di social coding sotto indicati: