from ironxl import * # Import any XLSX, XLS, XLSM, XLTX, CSV, and TSV workbook = WorkBook.Load("sample.xlsx") # Export the excel file as XLS, XLSX, XLSM, CSV, TSV, JSON, XML workbook.SaveAs("sample.xls") workbook.SaveAs("sample.xlsx") workbook.SaveAs("sample.tsv") workbook.SaveAsCsv("sample.csv") workbook.SaveAsJson("sample.json") workbook.SaveAsXml("sample.xml") # Export the excel file as HTML, HTML string workbook.ExportToHtml("sample.html") html_string = workbook.ExportToHtmlString() # Export the excel file as Binary, Byte array, Data set, Stream binary_data = workbook.ToBinary() byte_array_data = workbook.ToByteArray()