Cannot add MSWord reference

  • Thread starter Thread starter vul
  • Start date Start date
V

vul

I'm trying to add Microsoft Word 11.0 reference to the project. It adds with
a yellow mark and it doesn't bring anything in Object Browser.. I tried it
in VB 2005 and C# (VS 2005) on 2 machines (Windows XP Pro) with the same
result.
What's wrong?

Thank you
Al
 
You need the Office primary interop assemblies.. google for them.

Then add references to the interop assemblies; the IDE can't properly
make these interops for you automatically.
 
Thank you
I couldn't find anything about interop assemblies for 2005. All I found
about 2003. But in 2003 I have no problem.
So far I found a work around:
I created a new project in 2003 with nothing, added references I need, saved
it, opened in 2005 with conversion, saved it, opened both proj files
(existing one and new one) in Notepad.
Copy <COMReference Include... from a new file to existing one, saved. Then
when I opened a solution in VS2005, all references were there.

Regards,
Al
 
I found how to install Office primary interop and now everything is working
properly.
Thank you, Andy
Al
 
Back
Top