from aspose.cells import HtmlSaveOptions, SaveFormat, Workbook

#  For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
#  The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
#  Specify the file path
filePath = dataDir + "Book1.xlsx"
#  Specify the HTML Saving Options
sv = HtmlSaveOptions(SaveFormat.M_HTML)
#  Instantiate a workbook and open the template XLSX file
wb = Workbook(filePath)
#  Save the MHT file
wb.save(filePath + ".out.mht", sv)