Error when trying to read an .xls file using EPPlus

后端 未结 2 1215
广开言路
广开言路 2021-01-17 11:53

The following code is working fine for .xlsx, but it\'s not working for .xls. I got this error message

Can not open the package. Package is an OLE com

2条回答
  •  情深已故
    2021-01-17 12:37

    I succesfully used Tony's answer https://stackoverflow.com/a/18904633/306515 and simply convert it using Microsoft.Office.Interop.Excel and can still then use epplus

提交回复
热议问题