Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation Error
Message
 
To
09/05/2002 14:11:43
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00589963
Message ID:
00659271
Views:
47
Tamar:

Thanks for the tip. I added the command "WAIT WINDOW TIMEOUT .8" after different automation commands and it worked. For example:

WordObj = CREATEOBJECT("Word.Application")
WAIT WINDOW TIMEOUT .8

WordObj.ActiveDocument.SaveAs("&cWordFile.")
WAIT WINDOW TIMEOUT .8


To summarize, the user had:

- Windows 2000
- Norton SystemWorks 5.0 version 2002.5
- Disabled the Office Plugin
- Disabled script blocking
- MSWord 2002 SP-1
- Running a VFP6 SP5 exe

The VFP code would open a worddoc, perform bookmark subs, print and/or save the doc to a new file, and then close the original doc without saving changes. It would (sometimes) work the first time but would error out on other attempts with:

Error: 1426/OLE errorcode 0x800706ba: The RPC server is unavailable


And...... this was not a problem w/ Win98.

thanks again.....



>>Tamar:
>>
>>Are u saying that a WAIT TIMEOUT command fixed the problem? Am getting the same problem on an XP box with VFP6. Have disabled Norton's script blocking but still get problem. Its Ok on Win98 and Word97.
>>
>>If the WAIT did work, where in the process did u place this command? And was there a 'TIMEOUT n' value specified?
>
>Yes, our first pass at a solution (which we tried when we found we could step through the code successfully) involved a WAIT "" TIMEOUT .1 (I think-this was months ago). We put the WAIT right before the line that was erroring on the basis that it was waiting for a previous line to complete.
>
>FWIW, it wasn't script blocking from Norton that caused the problem, but the Office plug-in. I'm not running the same version of Norton here as my client was, so I can't give you specifics, I'm afraid.
>
>Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform