How do I use office 2003 core files for .net when I now have office 2007 on my computer?

How do I use office 2003 core files for .net when I now have office 2007 on my computer?

The problem is that I upgraded to a new computer with VS.net 2008 and Microsoft Office 2007 and then converted an old application that used Microsoft Office 2003 core files.

The specific lines of code that are giving me problems are:
Imports Microsoft.Office.Core
Imports excel = Microsoft.Office.Interop.Excel

I would upgrade and change my code to MS Office 2007 however this customer still uses MS Office 2003 on all of their computers.

Any ideas?

Thanks,
John
LVL 3
jdraggiAsked:
Who is Participating?
 
J1H1W1Commented:
You should have the interop files somewhere within your project.  Remove your current references and reference the files within your project.  Don't reference the files on the COM tab.  You need to reference the Office 2003 interop files.
0
 
jdraggiAuthor Commented:
Thank you very much!
--John
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.