When I try to open a file in Excel 2007 that has been exported using the ExportToExcel() function on a DataGrid, I get a message:
"The file you are trying to open, 'filename.xls', is in a different format than specified by the 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 now?"
If I press 'Yes', it opens fine. This didn't happen in Excel 2003. Is there a fix for this?
Associate, .NET Development
Morgan Stanley, UK