Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing MSWord from VFP
Message
 
To
24/02/2000 10:18:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00336743
Message ID:
00336771
Views:
20
>Hi,
>
>Thanks to all that have tried to help me along, but I still have a problem: (VFP5/Win98/Word97)
>
>I write a small program, creating the Word application object,
>then
>oWord.Documents.Open("MYFILE.DOC")
>oWord.Visible = .T.
>oWord.Application.Activate
>
>which lets me see Word with the document in a brief flash, then
>it is gone. If I insert a wait window command after activating Word,
>I can access end edit the document, then close it, and hit any key to remove the wait message and continue with the program. But it should not be necessary to to it that way? I haven't found out how to maximize Word either. VBA, as far as I can see, doesn't give any clue to the command for this except in a Word macro.
>
>Rolf

Rolf, probably your oWord variable goes out of scope. Try to declare it as Public for the test.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform