dll's / references / intellisense
Hello,
My first posting. I'm new to C# and to Visual Studio, so please forgive me if some of these questions are a little simple.
I'm trying to use and Excel COM object in my application. I have an application VS project that I have downloaded and this compiles and runs perfectly.
Then I've started a new project, and I'm attempting to use the same techniques, but I'm running into problems.
I have added a Reference to the same Excel COM object, and my code for grabbing the content of an Excel spreadsheet is the same, but I'm getting errors like:
"The type or namespace name 'Excel' could not be found (are you missing a using directive or an assembly reference?)"
So, I try to add the line:
using Excel;
into my code, but then I get the same error, even though I can see 'Excel' under the References in Solution Explorer.
I think that whatever is not right also means that Intellisense doesn't list 'Excel' either.
Can anyone tell me what I'm doing wrong here?
Many thanks!