Reputation: 599
Hi I've Error while reading .xlsx Excle file. I'm using Excel.dll and when I'm trying to read data from my worksheet I'm getting error
"End of Central Directory record could not be found."
Here's sample code
foreach (var worksheet in Workbook.Worksheets(@"c:\MyFile.xlsx"))
Upvotes: 1
Views: 3000
Reputation: 599
I noticed that my .xlsx was protected by password so I used different one, now it 's working.
Upvotes: 1