Free Support Forum - aspose.cloud

How to convert MHT / MHTML to XLS using Aspose.Cells REST API

Is it possible to convert MHT to XLS using API? I tried but it doesn’t seem available.

@birudvora

Please share following details and we’ll look into this scenario:

  • API variant (.NET or Java) and version (e.g 20.10, 21.1) that you are using
  • Sample MHT file

I am using Rest API and not using any library.

Ability to convert from MHT to XLS is available in the website https://products.aspose.app/cells/conversion/mht-to-xlsx. But I could not find it in the API document here:

https://apireference.aspose.cloud/html/ or https://apireference.aspose.cloud/cells/

Thanks

@birudvora

Yes, Aspose.Cells Cloud supports MHT/MHTML to XLS. You can use all supported conversion APIs from Aspsoe.Cells Cloud for the purpose. For example, please check GetWorkBook API for reference.

GET ​/cells​/{name} Exports workbook to some format.

curl -X GET "https://api.aspose.cloud/v3.0/cells/result.mht?format=xls&isAutoFit=false&onlySaveTable=false&outPath=resultmhttoxls.xls" 
-H "accept: multipart/form-data" 
-H "authorization: Bearer [Access_Token]" 
-H "x-aspose-client: Containerize.Swagger"