التحويل إلى ملفات MHTML في Python

Aspose.Cells - التحويل إلى MHTML

لتحويل ورقة العمل إلى ملف MHTML باستخدام Aspose.Cells for Java في Python ، ما عليك سوى استدعاء ورقة العمل_إلى_mhtml () طريقة وحدة المحول.

Python كود

 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."

قم بتنزيل كود التشغيل

تحميلالتحويل إلى MHTML (Aspose.Cells) من أي من مواقع الترميز الاجتماعي المذكورة أدناه: