当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - 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"))

网友答案:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: