Would you like to create a wrapper?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I converted an existing VS2003 into a VS2005 project. This particular
project had refenences to MS Office and Excel. When I compile the
application I noticed I got compile warnings and those warnings were on my
reference to MS Office and Excel. When I clicked on the warning, I got a
message indicating that there might be a more current version of these items
and would I like to create a wrapper. I clicked yes and the machine whirled
away for about 30 seconds and then the error message dissappeared. I thought
it might be creating a "wrapper", but I could see nothing new as a result of
my clicking "yes".

Now when I compile the project, The compiler highlights my "using excel;"
statement and I can not make this error go away. I have removed and re-added
my references to MS Office and MS Excel, but this has no effect.

So what happened when I responded "yes" to the dialog box asking me if I
wanted to create a wrapper and what do I need to do in order to get my
application to compile now?

Thanks in advance for your assistance!!!
 
Hi,

Probably it used another name for the namespace.

Take a look with the object explorer (ctrl+alt+ J ) and see where the
classes are defined
 
Thanks...

I am not sure why, but in 2003, I was able to create my reference and then
specify "using Excel;" but In 2005, I am forced to specify "using
Microsoft.Office.Interop.Excel;". But even doing this, I still can not use
the notation of "Excel.", I have to provide the
"Microsoft.Office.Interop.Excel.".

I have no idea why this would be......

But I still do not know what happened when it asked me if I wanted to create
a wrapper and I responded yes.....what did it do? Why did the error go away
after I did this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top