komluk
komluk

Reputation: 599

Read .xlsx Excel File error

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

Answers (1)

komluk
komluk

Reputation: 599

I noticed that my .xlsx was protected by password so I used different one, now it 's working.

Upvotes: 1

Related Questions