Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error The RPC server is unavailable
Message
From
24/07/2000 14:39:33
 
 
To
24/07/2000 13:23:17
Victoria Mckee
Kansas City Life Insurance Co
Kansas City, Missouri, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00396236
Message ID:
00396258
Views:
14
Hi Victoria,
>I have a Fox system that uses Word 2000 as an OLE object. I only opne Word when I know that the user needs to print a specific document, but once Word is open, I leave it open until the user leaves the system.
>
>Code to open Word
> public oleApp
> oleApp = CreateObject("Word.Application")
> oleApp.Visible = .f.
> glWordOpen = .t. && created earlier and left as .f.
>
>On occassion and only toward the end of the business day, a user will get an error
>
>#1426 - OLE error code 0x800706ba: The RPC server is unavailable.
>

I assume you are receiving this error when you attempt to kill the instance of Word, ie. oleApp.Quit() generates this error. More than likely, the user is closing the instance of Word manually prior to exiting your application. You can remedy this by not making Word visible to the user, unless your app requires some user intervention in Word. If it does, then prior to attempting to kill the instance of Word, trap for the error.

For instance,

On Error glWordOpen = .f.
oleApp.Quit() && would generate this error if Word is already closed
release oleApp

HTH,
Jon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform