Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation
Message
From
21/11/1999 11:02:14
 
 
To
19/11/1999 12:20:52
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00293117
Message ID:
00293636
Views:
19
Hi Jim,

Which version of Word are you using? And are you creating a Word application object with CREATEOBJECT()? If so, try using:

cPathName=SYS(5)+SYS(2003) && Why not CURDIR()?
oWord.Documents.Open(cPathName)

>I have a screen with a grid that lists several reports. One of the other options on the screen is to export a report to MS WORD. If I click on one of the export buttons the report is created and it works great. If I click on a second export button I get an error that says OLE error code 0x800706ba: The RPC server is unavailable. The error occurrs on the following line of code
>oWord.FileOpen(sys(5) + sys(2003) + "\docs\lbehind.doc").
>
>HELP!!! What is wrong????
>
>Jim
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform