我试图使用以下ExcelReader库:无法在我引用的库代码隐藏
http://exceldatareader.codeplex.com/
的代码示例显示:
//1. Reading from a binary Excel file ('97-2003 format; *.xls)
IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream);
我的应用程序是(不幸)在VB.NET中。我写了以下内容:
Dim excelReader as IExcelDataReader
但是我只是得到“IExcelDataReader是未定义的”。
我试着做进口Excel.dll:
Imports Excel
但同样我刚刚得到一个错误。
这是为什么?我怎样才能引用这个库?
初听微不足道,但你加项目参考'Excel.dll'文件? – 2012-04-04 10:34:47
@ShadowWizard我在我的'bin'文件夹中添加了对'Excel.dll'和'ICSharpCode.SharpZipLib.dll'的引用yes – Curt 2012-04-04 10:36:01