My application generates a .xls file whose content is HTML. When this file is opened in newer versions of office i get the following error.
If i open the file and save as .xls by changing the type from web page to .xls the error is removed.
Is there any way to do this using a program in c# or any other technology (Without using any third party library is more preferred)