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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RPC Server error - using Word's spellchecker

Status
Not open for further replies.

ukusa

Programmer
Oct 8, 2001
49
AU
Howdy,

Just put together code to use Word's spelling checker feature to run in my memo field. Running it for the first time each application run, it works like a dream, but if I try to run it a second time, the error "The RPC server is unavailable" comes up. Only works again when I close down the Delphi application and run it again afterwards. It complains when "Wordapp.connect" or "WordDoc.ConnecoTo" executes. Running on standalone PC and using XP professional. Any ideas? Thanks in advance...
 
How do you connect to the Word instance? Do you close it when you are done with it?

Cheers
 
Thanks for that... closing wasn't the problem but I forgot to put in code to disconnect the server before connecting again.

My next test is to find out what happens if it tries to access Word on a machine where Word isn't installed. Do you know how to test for that so no nasty messages come up? I have to try it on one of my spare PC's at home to test but like to bulltet-proof regardles.

Thank you :cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top