hodzung / excellibrary

Automatically exported from code.google.com/p/excellibrary
1 stars 0 forks source link

Creation of Worksheet object fails the program #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using the ExcelLibrary Dll into my class library to read excel 
documents. One of the methods that I call and which in turn has calls to 
the dll's methods and objects, fails on the step of creation of Worksheet 
object.

When I comment the Worksheet declaration statement the code works fine.

Original issue reported on code.google.com by sameer.g...@gmail.com on 6 Apr 2009 at 10:00

GoogleCodeExporter commented 9 years ago
Please provide us more details or post some sample code that causes issue. 

Original comment by jetcat on 15 Apr 2009 at 12:57

GoogleCodeExporter commented 9 years ago
I am not sure about Sameer's question from 2009, but when I paste the sample 
code from one ExcelLibrary website into the Main function for a Console App, C# 
complains about almost everything in the file. For a start, C# (VS 2010) 
complains about the following statement in the sample code:

" Workbook workbook = new Workbook();"

And here is the error message:
"Cannot create an instance of the abstract class or interface 
'Microsoft.Office.Tools.Excel.Workbook".

I understand interfaces, so the question is, what was intended in the sample 
code?

Thus, I cannot even move on to the complaints about Interop, which is not one 
of the references for the project, and which this code does not "use".

Original comment by walter.p...@kronosconsulting.net on 23 Jan 2012 at 10:35