So I am downloading some excel files from a service that calculates a day of a worker in this company when I download this file this comes up:
Now I think everything alright, it should work fine. So here's the deal if I try and open this file in my Visual Studio 2015 with an openfiledialog I get this error.
Now when I go and save the excel as 97-2003 xls file it works with createbinaryreader
. And if I save it as a normal excel format xlsx file it works with createopenxmlreader
.
How can I fix this so I don't need to go to the excel file and specially save it as a excel-workmap (xls or xlsx)?
PS: I am putting this excel file into a datagridview.