Reference Excel & Excel Data Reader in Same project

May 7, 2010 at 6:32 PM

This can't be done. Why would you create an object and call it the same as a Microsoft object? Now I can't reference Excel and Excel Data Reader because it too is called Excel! I need to be able to read an excel file with the Data Reader and return datatables then I need to later create an excel file in a specific format from which I need Excel and not a reader to perform this action. Can't be done because can't reference both objects in the same project. How would you do this?

Jul 31, 2010 at 10:20 PM

Just download the code, change the namespaces to whatever you want (i.e. "ExcelReader"), compile it, use it and be happy :)