Connecting Tech Pros Worldwide Forums | Help | Site Map

Word: Object reference not set to in instance of an object

Bob
Guest
 
Posts: n/a
#1: Apr 4 '07
Hi,

I have added the Microsoft Word 11.0 COM component.

When i try to open a word document on other computers (having Word 2003
installed...), i have this error : Object reference not set to in instance
of an object.
It's working perfectly on the computer where the program was written.

Any help would be appreciated !

Thanks.



Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#2: Apr 4 '07

re: Word: Object reference not set to in instance of an object


Bob,

Without seeing the code, it's impossible to say.

What version of word do you have on your machine? Is it the same that
is on the other machines?

Also, you ^really^ should reference the Primary Interop Assemblies for
Word, as it helps with the versioning issue. I would look at the following
section in the MSDN documentation titled "Office Primary Interop Assemblies"
for more information:

http://msdn2.microsoft.com/en-us/lib...57(VS.80).aspx

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

"Bob" <nospam@nospam.orgwrote in message
news:eE51BvsdHHA.208@TK2MSFTNGP05.phx.gbl...
Quote:
Hi,
>
I have added the Microsoft Word 11.0 COM component.
>
When i try to open a word document on other computers (having Word 2003
installed...), i have this error : Object reference not set to in instance
of an object.
It's working perfectly on the computer where the program was written.
>
Any help would be appreciated !
>
Thanks.
>

Closed Thread