I have a web application that generates a file based on Open XML standards for EXCEL, populates all the required data and finally saves the file with extension as '.xls' so that when the user downloads the file and opens it, by default it opens in MS Excel application. This has been working fine all these days when we open the xls file in (upto) MS Excel 2013. Excel throws a warning about the difference in file format and the extension do not match and confirms with us whether we still want to open it. On proceeding, we will be able to open the excel without any issues in the data.
Now that when we open the same xls file in MS Excel 2016, we straightaway get the error like "Excel cannot open the file claim format.xlsx because the file format or file is not valid. Verify that file has not been corrupted and that the file extension matches the file."
I tried changing the extension to '.xml' and opened the file with Excel 2016, it worked like a charm. Changing the format to xlsx doesn't work even in EXCEL 2013 as we ll and I understand it as being restricted due to security purposes in the newer versions going forward.
I am not able to identify a workaround on this in any forum to continue to using the xls extension. I would like to know the possibility to continue Open XML file format with Excel 2016.
Thank you for your time!