且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法找到类型或命名空间XLWorkbook

更新时间:2023-02-20 10:55:46

您是否引用了所需的dll?

请执行以下操作。



开您的解决方案浏览器>参考>右键单击>添加参考> COM标签>搜索Microsoft Excel 14.0对象库(或更低,具体取决于您的Excel。)
Have you referenced the required dlls?
Do the below.

On your Solution Explorer > Reference > Right click > Add Reference > COM Tab > Search for Microsoft Excel 14.0 Object Library (or lower depending on your excel.)