Free Support Forum -

Avoid Excel warning when opening


I am getting an excel warning mentioning “The file you are trying to open is in a different format than specified by file extension, verify that the file is not corrupted and is from a trusted source before opening the file, do you want to open the file”, while downloading excel report from application.

I am using StringTemplate in getting the html and then converting it to excel, which is why I might be getting that error. Hence I want to find out if ASPOSE API can help us convert html to excel and not get the above warning. We will consider buying the product if it solves our problem.

Looking for a quick response. Thanks in advance.



Well, Aspose.Cells does support to convert HTML/MHTML files to Excel formats (e.g XLS, XLSX etc.) but the HTML should be MS Excel oriented (MS Excel can create or open such a file), if it is a general/common HTML file, then it might not read the file well.

Please see the documents on Aspose.Cells’ supported file formats and conversions:

Thank you.