Home All Groups Group Topic Archive Search About

Cannot add MSWord reference

Author
3 Mar 2006 2:57 PM
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

Author
3 Mar 2006 4:31 PM
Andy
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.
Author
3 Mar 2006 5:40 PM
vul
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

Show quoteHide quote
"Andy" <ajj3***@alum.rit.edu> wrote in message
news:1141403515.951010.195660@u72g2000cwu.googlegroups.com...
> 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.
>
Author
3 Mar 2006 6:35 PM
vul
I found how to install Office primary interop and now everything is working
properly.
Thank you, Andy
Al

Show quoteHide quote
"Andy" <ajj3***@alum.rit.edu> wrote in message
news:1141403515.951010.195660@u72g2000cwu.googlegroups.com...
> 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.
>