Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unknown error in using word interop

Status
Not open for further replies.

BearPalm

Programmer
Oct 20, 2004
6
0
0
CA
Hello, everybody.
I am writting a Mail-Merge program in Microsoft Word.
Under my compilation directory, say "d:\dev\bin",
the module is working well. However, if I copy this module
to application directory or other directories in same
machine and execute same program, an unhandle error
happened, that is:
"An unhandled exception of type
'System.NullReferenceException' occurred in app_master.exe"

Even though I comment out all code except for
"Word.ApplicationClass AppReport =
new Word.ApplicationClass();"
the error still exists.

OS: MS-2000 server
Office: 2003
language: C#
Does anybody know what is wrong in this case?
And why can I run the program in develop directory?
Thank you in advance
Jeff
jeff@imexsystems.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top